8 lines
306 B
Bash
8 lines
306 B
Bash
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"
|