From 0aec048eaf302aa370741d1004fd3f7c3b0764f1 Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Fri, 1 Aug 2014 15:32:40 +0200 Subject: [PATCH] use test -f instead of ls --- apache/vhosts/standard.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache/vhosts/standard.sls b/apache/vhosts/standard.sls index 8cd0695..9650c70 100644 --- a/apache/vhosts/standard.sls +++ b/apache/vhosts/standard.sls @@ -24,7 +24,7 @@ include: a2ensite {{ id }}: cmd: - run - - unless: ls /etc/apache2/sites-enabled/{{ id }} + - unless: test -f /etc/apache2/sites-enabled/{{ id }} - require: - file: {{ id }} - watch_in: