diff --git a/apache/vhosts/standard.sls b/apache/vhosts/standard.sls index cfcf7fa..7d117c1 100644 --- a/apache/vhosts/standard.sls +++ b/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') %}