浏览代码

Fix overwrite check testing the name of the vhost rather than settings dict

susefix
George Robinson 8 年前
父节点
当前提交
38c7c8a772
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      nginx/ng/vhosts_config.sls

+ 1
- 1
nginx/ng/vhosts_config.sls 查看文件

@@ -94,7 +94,7 @@ nginx_vhost_available_dir:
- template: jinja
- context:
config: {{ settings.config|json() }}
{% if 'overwrite' in vhost and vhost.overwrite == False %}
{% if 'overwrite' in settings and settings.overwrite == False %}
- unless:
- test -e {{ vhost_curpath(vhost) }}
{% endif %}

正在加载...
取消
保存