Browse Source

Merge pull request #22 from n-rodriguez/fix/state

fix(state): restart service when configuration has changed
tags/v0.7.3
Imran Iqbal 4 years ago
parent
commit
b00185a906
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      apt-cacher/ng/server/service/running.sls

+ 2
- 1
apt-cacher/ng/server/service/running.sls View File

@@ -18,9 +18,10 @@ apt-cacher/ng/server/service/running:
service.running:
- name: {{ apt_cacher_ng.service }}
- enable: true
- require:
- watch:
- sls: {{ sls_config_file }}
{%- if 'require' in apt_cacher_ng %}
- require:
{%- for require in apt_cacher_ng.require %}
- {{ require }}
{%- endfor %}

Loading…
Cancel
Save