aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/deploy.sh.erb11
1 files changed, 4 insertions, 7 deletions
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)