]> gitweb.fluxo.info Git - puppet-ikiwiki.git/commitdiff
More cleanup
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 21:06:56 +0000 (18:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 21:06:56 +0000 (18:06 -0300)
templates/deploy.sh.erb

index 61fd2d53d2b881a720d7abda0c5fbba84de6858d..d971cc14f4a7d98bd5e0d92653ce1c1adc4d1226 100644 (file)
@@ -34,10 +34,7 @@ This wiki is powered by [ikiwiki](http://ikiwiki.info).
 EOF
 fi
 
-# Create ikiwiki instance
-if [ ! -d "$REPO" ]; then
-  ikiwiki-makerepo git $SITE/"$INSTANCE"_src_tmp $SITE/"$INSTANCE"_src
-  rm -rf $SITE/"$INSTANCE"_src_tmp
-  ( cd $REPO/$NAME.git       && git --bare update-server-info )
-  ( cd $SITE/"$INSTANCE"_src && git remote rm origin && git remote add origin $REPO)
-fi
+# Create ikiwiki repository
+ikiwiki-makerepo git $SITE/"$INSTANCE"_src_tmp $SITE/"$INSTANCE"_src
+rm -rf $SITE/"$INSTANCE"_src_tmp
+( cd $SITE/"$INSTANCE"_src && git remote rm origin && git remote add origin $REPO)