http-server-status/scripts/postinstall.sh

13 lines
343 B
Bash
Raw Normal View History

2023-07-21 14:02:35 +00:00
if [ -f "/etc/http-server-status/config.yml" ]; then
echo "Config exists"
else
cp /etc/http-server-status/config.yml.sample /etc/http-server-status/config.yml
fi
2021-09-20 09:44:27 +00:00
systemctl daemon-reload
2023-07-21 14:11:16 +00:00
STATUS="$(systemctl is-active tomcat.service)"
if [ "${STATUS}" = "active" ]; then
systemctl restart http-server-status
echo "Restart Service"
fi