]> gitweb.fluxo.info Git - puppet-ikiwiki.git/commitdiff
Fixing origin url on deploy
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 17:46:43 +0000 (14:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 17:46:43 +0000 (14:46 -0300)
templates/deploy.sh.erb

index 4ebbf1da7a8ec62c9c677550a6dbf387379208a7..7fa41036e29d85d7d092d424508df62319f36a0e 100644 (file)
@@ -37,5 +37,6 @@ fi
 if [ ! -d "$REPO" ]; then
   ikiwiki-makerepo git $SITE/"$INSTANCE"_src/ $REPO
   touch $REPO/git-daemon-export-ok
-  ( cd $REPO/$NAME.git && git --bare update-server-info )
+  ( cd $REPO/$NAME.git       && git --bare update-server-info )
+  ( cd $SITE/"$INSTANCE"_src && git remote rm origin && git remote add origin gitolite@localhost:$INSTANCE )
 fi