Browse Source

Fix absent /var/log/nginx

susefix
George Robinson 8 years ago
parent
commit
874719e49e
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      nginx/ng/config.sls

+ 5
- 0
nginx/ng/config.sls View File



{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}


{% if nginx.install_from_source %}
/var/log/nginx:
file.directory
{% endif %}

nginx_config: nginx_config:
file.managed: file.managed:
{{ sls_block(nginx.server.opts) }} {{ sls_block(nginx.server.opts) }}

Loading…
Cancel
Save