aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-11 14:46:43 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-11 14:46:43 -0300
commitdf2965f98da233fdefa44b23bb8c90ab1bb6098f (patch)
tree398f679f1c752a940f7dff1fbc2e1080a2b8b931
parent51df8cf09a7a3ec96bb203b7d5ad1af47440ef5a (diff)
downloadpuppet-ikiwiki-df2965f98da233fdefa44b23bb8c90ab1bb6098f.tar.gz
puppet-ikiwiki-df2965f98da233fdefa44b23bb8c90ab1bb6098f.tar.bz2
Fixing origin url on deploy
-rw-r--r--templates/deploy.sh.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb
index 4ebbf1d..7fa4103 100644
--- a/templates/deploy.sh.erb
+++ b/templates/deploy.sh.erb
@@ -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