diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 18:06:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 18:06:56 -0300 |
commit | d0499250019785e683b90c09196e7c74e6aa19e2 (patch) | |
tree | c7861a7c98e51970de597182de0879976f8b5905 /templates | |
parent | 4be9af9b63ef9abaa3bb835e8d271495f1c936bc (diff) | |
download | puppet-ikiwiki-d0499250019785e683b90c09196e7c74e6aa19e2.tar.gz puppet-ikiwiki-d0499250019785e683b90c09196e7c74e6aa19e2.tar.bz2 |
More cleanup
Diffstat (limited to 'templates')
-rw-r--r-- | templates/deploy.sh.erb | 11 |
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) |