Browse Source

Don't execute a2ensite if the vhost is already enabled

master
vincentfretin 10 years ago
parent
commit
18d8c0c0fb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      apache/vhosts/standard.sls

+ 1
- 0
apache/vhosts/standard.sls View File

a2ensite {{ id }}: a2ensite {{ id }}:
cmd: cmd:
- run - run
- unless: ls /etc/apache2/sites-enabled/{{ id }}
- require: - require:
- file: {{ id }} - file: {{ id }}
- watch_in: - watch_in:

Loading…
Cancel
Save