Explorar el Código

manage_security: fix file presence detection

Detect runtime, rather than before starting/installing anything.
master
Adrien "ze" Urban hace 6 años
padre
commit
76f05dda8e
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      apache/manage_security.sls

+ 1
- 2
apache/manage_security.sls Ver fichero

@@ -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') }}

Cargando…
Cancelar
Guardar