浏览代码

Merge pull request #229 from ze42/manage_security_file_presence

manage_security: fix file presence detection
tags/v0.37.4
Javier Bértoli 6 年前
父节点
当前提交
4e73a80b62
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      apache/manage_security.sls

+ 1
- 2
apache/manage_security.sls 查看文件

@@ -19,9 +19,8 @@ include:

{% if grains['os_family']=="Debian" %}

{% if salt['file.file_exists' ]('/etc/apache2/conf-available/security.conf') %}
{{ security_config('/etc/apache2/conf-available/security.conf') }}
{% endif %}
- onlyif: test -f '/etc/apache2/conf-available/security.conf'

{% elif grains['os_family']=="FreeBSD" %}
{{ security_config(apache.confdir+'/security.conf') }}

正在加载...
取消
保存