Bladeren bron

Merge pull request #72 from wido/fix_register_site

Files in sites-available should end with .conf under Ubuntu
tags/v0.37.4
puneet kandhari 9 jaren geleden
bovenliggende
commit
b59ef46304
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +3
    -3
      apache/register_site.sls

+ 3
- 3
apache/register_site.sls Bestand weergeven

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

{% endif %}
##########################################

Laden…
Annuleren
Opslaan