Commit 5cc88d47 authored by godog's avatar godog

nginx: force cache directory ownership

parent af33e0be
Pipeline #3290 passed with stage
in 4 minutes and 22 seconds
......@@ -6,6 +6,11 @@ After=network.target
Type=forking
Restart=on-failure
PIDFile=/run/nginx/nginx.pid
# After testing configuration with nginx -t (as root), these directories will
# be owned by root:nginx.
# Since asking operators to remember to 'sudo -u nginx nginx -t' is not an
# option, force ownership here or nginx will refuse to (re)start.
ExecStartPre=/usr/bin/install -v -d -o nginx -g nginx /var/cache/nginx /var/cache/nginx/temp
ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on; error_log stderr;'
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on; error_log stderr;'
ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on; error_log stderr;' -s reload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment