Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Kekskurse | 94d1f90722 | |
Kekskurse | 383ce965a0 | |
Kekskurse | 3fde27f83b | |
Kekskurse | 28b5ccca8e |
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue