瀏覽代碼

Don't execute `a2dissite` on each state run

Add `onlyif` check to execute `a2dissite` only when needed.
master
Elias Probst 9 年之前
父節點
當前提交
ff2dd397c3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      apache/vhosts/standard.sls

+ 1
- 0
apache/vhosts/standard.sls 查看文件

@@ -43,6 +43,7 @@ a2ensite {{ id }}{{ apache.confext }}:
a2dissite {{ id }}{{ apache.confext }}:
cmd:
- run
- onlyif: test -f /etc/apache2/sites-enabled/{{ id }}{{ apache.confext }}
- require:
- file: /etc/apache2/sites-available/{{ id }}{{ apache.confext }}
- watch_in:

Loading…
取消
儲存