瀏覽代碼

a2(en|dis)site requires the full name incl. the confext.

tags/v0.37.4
Elias Probst 9 年之前
父節點
當前提交
0ed941bd4e
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      apache/register_site.sls

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

@@ -9,9 +9,9 @@
{% if 'name' in pillar['apache']['register-site'][site] and 'state' in pillar['apache']['register-site'][site] %}

{% if pillar['apache']['register-site'][site]['state'] == 'enabled' %}
{% set a2modid = "a2ensite " ~ pillar['apache']['register-site'][site]['name'] %}
{% set a2modid = "a2ensite " ~ pillar['apache']['register-site'][site]['name'] ~ apache.confext %}
{% else %}
{% set a2modid = "a2dissite " ~ pillar['apache']['register-site'][site]['name'] %}
{% set a2modid = "a2dissite " ~ pillar['apache']['register-site'][site]['name'] ~ apache.confext %}
{% endif %}
{{ a2modid }}:
cmd.run:

Loading…
取消
儲存