Commit 4ab8698a authored by ale's avatar ale

Merge branch 'nginx_chown' into 'master'

nginx: force cache directory ownership

See merge request !31
parents 6d6d5320 5cc88d47
Pipeline #3330 passed with stage
in 5 minutes and 1 second
......@@ -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