linux - reload as root

This commit is contained in:
bunkerity 2021-08-12 15:44:10 +02:00
parent 7b47c7304f
commit 31536a3fe2
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 1 additions and 1 deletions

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"