]> gitweb.fluxo.info Git - puppet-ikiwiki.git/commitdiff
Minor fixes
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Jan 2010 01:09:24 +0000 (23:09 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Jan 2010 01:09:24 +0000 (23:09 -0200)
templates/deploy.sh.erb
templates/refresh.sh.erb

index 751264dc46b146f5d94043e1ba55140762e0f988..07760ec55d5bbc812782124d269c3eb2890ef8e4 100644 (file)
@@ -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 source folder
index fd20ff0d00fb59eda0cf03417ba27f4c720ca06c..bca18e40e26ea38e3094906d513124607509795d 100644 (file)
@@ -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