stuff
All checks were successful
/ Release (push) Successful in 1m14s

This commit is contained in:
Kekskurse 2023-07-21 16:02:35 +02:00
parent 280a9559f6
commit 28b5ccca8e
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
2 changed files with 6 additions and 5 deletions

View file

@ -1,2 +1,8 @@
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"

View file

@ -2,8 +2,3 @@
if ! id -u http-server-status > /dev/null 2>&1; then
adduser --system http-server-status
fi
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