linux - reload as root
This commit is contained in:
parent
7b47c7304f
commit
31536a3fe2
@ -42,7 +42,7 @@ do_and_check_cmd "/opt/bunkerized-nginx/entrypoint/jobs.sh"
|
|||||||
# Reload nginx if it's running
|
# Reload nginx if it's running
|
||||||
if [ -f "/tmp/nginx.pid" ] ; then
|
if [ -f "/tmp/nginx.pid" ] ; then
|
||||||
echo "[*] Reload nginx"
|
echo "[*] Reload nginx"
|
||||||
do_and_check_cmd "nginx -s reload"
|
AS_ROOT="yes" do_and_check_cmd nginx -s reload
|
||||||
# Otherwise start it
|
# Otherwise start it
|
||||||
else
|
else
|
||||||
echo "[*] Start nginx"
|
echo "[*] Start nginx"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user