From d0499250019785e683b90c09196e7c74e6aa19e2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Apr 2013 18:06:56 -0300 Subject: More cleanup --- templates/deploy.sh.erb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'templates') diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb index 61fd2d5..d971cc1 100644 --- a/templates/deploy.sh.erb +++ b/templates/deploy.sh.erb @@ -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) -- cgit v1.2.3