2023-07-21 14:02:35 +00:00
|
|
|
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
|
|
|
|
|
2021-09-20 09:44:27 +00:00
|
|
|
systemctl daemon-reload
|
2021-11-29 05:12:26 +00:00
|
|
|
systemctl is-active --quiet http-server-status && systemctl restart http-server-status && echo "Restart Service"
|