瀏覽代碼

Merge pull request #49 from multani/fix-missing-documentroot

Don't fail on missing DocumentRoot
master
Forrest 9 年之前
父節點
當前提交
b190357ebf
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      apache/vhosts/standard.sls

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

@@ -19,12 +19,14 @@ include:
- pkg: apache
- watch_in:
- module: apache-reload

{% if 'DocumentRoot' in site %}
{{ id }}-documentroot:
file.directory:
- unless: test -d {{ site.get('DocumentRoot') }}
- name: {{ site.get('DocumentRoot') }}
- makedirs: True
{% endif %}

{% if grains.os_family == 'Debian' %}
a2ensite {{ id }}{{ apache.confext }}:

Loading…
取消
儲存