parent
280a9559f6
commit
28b5ccca8e
2 changed files with 6 additions and 5 deletions
|
@ -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 daemon-reload
|
||||||
systemctl is-active --quiet http-server-status && systemctl restart http-server-status && echo "Restart Service"
|
systemctl is-active --quiet http-server-status && systemctl restart http-server-status && echo "Restart Service"
|
||||||
|
|
|
@ -2,8 +2,3 @@
|
||||||
if ! id -u http-server-status > /dev/null 2>&1; then
|
if ! id -u http-server-status > /dev/null 2>&1; then
|
||||||
adduser --system http-server-status
|
adduser --system http-server-status
|
||||||
fi
|
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 a new issue