浏览代码

allow absence of DocumentRoot

DocumentRoot is useless for a plain redirect or proxy vhost, no need to
force creating the directory.

Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
tags/v0.37.4
Julien Cristau 9 年前
父节点
当前提交
9be8ade5aa
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      apache/vhosts/standard.sls

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

@@ -21,11 +21,13 @@ include:
- watch_in:
- module: apache-reload

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

{% if grains.os_family == 'Debian' %}
{% if site.get('enabled') %}

正在加载...
取消
保存