Quellcode durchsuchen

use test -f instead of ls in register_site.sls too

master
Vincent Fretin vor 10 Jahren
Ursprung
Commit
541360a0ce
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      apache/register_site.sls

+ 2
- 2
apache/register_site.sls Datei anzeigen

@@ -14,9 +14,9 @@ a2dissite {{ pillar['apache']['register-site'][site]['name'] }}:
{% endif %}
cmd.run:
{% if pillar['apache']['register-site'][site]['state'] == 'enabled' %}
- unless: ls /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}
- unless: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}
{% else %}
- onlyif: ls /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}
- onlyif: test -f /etc/apache2/sites-enabled/{{ pillar['apache']['register-site'][site]['name'] }}
{% endif %}
- order: 230
- require:

Laden…
Abbrechen
Speichern