Compare commits

...

4 Commits
v1.0.8 ... main

Author SHA1 Message Date
Kekskurse 94d1f90722
ci: fix pipeline
/ Release (push) Has started running Details
2023-07-24 01:53:14 +02:00
Kekskurse 383ce965a0
ci: fix pipeline
/ Release (push) Has started running Details
2023-07-24 01:50:56 +02:00
Kekskurse 3fde27f83b
stuff
/ Release (push) Successful in 1m10s Details
2023-07-21 16:11:16 +02:00
Kekskurse 28b5ccca8e
stuff
/ Release (push) Successful in 1m14s Details
2023-07-21 16:02:35 +02:00
2 changed files with 11 additions and 6 deletions

View File

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

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