From 31536a3fe2083e47c037c58dc8de3096d8d97775 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Thu, 12 Aug 2021 15:44:10 +0200 Subject: [PATCH] linux - reload as root --- helpers/bunkerized-nginx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/bunkerized-nginx b/helpers/bunkerized-nginx index cf5e539..02235aa 100755 --- a/helpers/bunkerized-nginx +++ b/helpers/bunkerized-nginx @@ -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"