瀏覽代碼

Files in sites-available should end with .conf under Ubuntu

master
Wido den Hollander 9 年之前
父節點
當前提交
def448db2f
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      apache/register_site.sls

+ 3
- 3
apache/register_site.sls 查看文件

@@ -15,14 +15,14 @@
{{ a2modid }}:
cmd.run:
{% if pillar['apache']['register-site'][site]['state'] == 'enabled' %}
- unless: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}
- unless: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}.conf
{% else %}
- onlyif: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}
- onlyif: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}.conf
{% endif %}
- order: 230
- require:
- pkg: apache
- file: /etc/apache2/sites-available/{{ pillar['apache']['register-site'][site]['name'] }}
- file: /etc/apache2/sites-available/{{ pillar['apache']['register-site'][site]['name'] }}.conf

{% endif %}
##########################################

Loading…
取消
儲存