http-server-status/scripts/postinstall.sh
kekskurse 3fde27f83b
All checks were successful
/ Release (push) Successful in 1m10s
stuff
2023-07-21 16:11:16 +02:00

12 lines
343 B
Bash

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
systemctl daemon-reload
STATUS="$(systemctl is-active tomcat.service)"
if [ "${STATUS}" = "active" ]; then
systemctl restart http-server-status
echo "Restart Service"
fi