Browse Source

use test -f instead of ls

tags/v0.37.4
Vincent Fretin 10 years ago
parent
commit
0aec048eaf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      apache/vhosts/standard.sls

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

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

Loading…
Cancel
Save