Browse Source

Merge pull request #52 from OneID/master

Force symlink creation of /etc/init.d/nginx
susefix
Nitin Madhok 10 years ago
parent
commit
205d37b028
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      nginx/common.sls
  2. +1
    -0
      nginx/package.sls

+ 1
- 0
nginx/common.sls View File

- source: salt://nginx/templates/config.jinja - source: salt://nginx/templates/config.jinja
- require: - require:
- file: /etc/nginx - file: /etc/nginx
- pkg: nginx


{% for dir in ('sites-enabled', 'sites-available') %} {% for dir in ('sites-enabled', 'sites-available') %}
/etc/nginx/{{ dir }}: /etc/nginx/{{ dir }}:

+ 1
- 0
nginx/package.sls View File

/etc/init.d/nginx: /etc/init.d/nginx:
file.symlink: file.symlink:
- target: /lib/init/upstart-job - target: /lib/init/upstart-job
- force: True
{% endif %} {% endif %}

Loading…
Cancel
Save