aboutsummaryrefslogtreecommitdiff
path: root/templates/refresh.sh.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/refresh.sh.erb')
-rw-r--r--templates/refresh.sh.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb
index fd20ff0..bca18e4 100644
--- a/templates/refresh.sh.erb
+++ b/templates/refresh.sh.erb
@@ -13,10 +13,12 @@ REPO="/var/git/repositories/$NAME.git"
if [ -z "$INSTANCE" ]; then
echo "Usage:`basename $0` <site> <instance>"
+ exit 1
fi
-if [ ! -e "$CONF/$NAME" ]; then
+if [ ! -e "$CONF/$NAME.setup" ]; then
echo "No config file for $NAME"
+ exit 1
fi
# Setup