http-server-status/scripts/postinstall.sh
kekskurse 28b5ccca8e
All checks were successful
/ Release (push) Successful in 1m14s
stuff
2023-07-21 16:02:35 +02:00

8 lines
306 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
systemctl is-active --quiet http-server-status && systemctl restart http-server-status && echo "Restart Service"