linux - reload as root

This commit is contained in:
bunkerity
2021-08-12 15:44:10 +02:00
parent 7b47c7304f
commit 31536a3fe2

View File

@@ -42,7 +42,7 @@ do_and_check_cmd "/opt/bunkerized-nginx/entrypoint/jobs.sh"
# Reload nginx if it's running
if [ -f "/tmp/nginx.pid" ] ; then
echo "[*] Reload nginx"
do_and_check_cmd "nginx -s reload"
AS_ROOT="yes" do_and_check_cmd nginx -s reload
# Otherwise start it
else
echo "[*] Start nginx"