Set /var/log/nginx writable by NGINX worker processes

This commit is contained in:
George Robinson 2016-05-10 12:06:42 +01:00
parent 5c68f12801
commit 7f5d36603d

View File

@ -5,9 +5,11 @@
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}
{% if nginx.install_from_source %}
nginx_log_directory:
nginx_log_dir:
file.directory:
- name: /var/log/nginx
- user: {{ nginx.server.config.user }}
- group: {{ nginx.server.config.user }}
{% endif %}
nginx_config: