diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 14:46:43 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 14:46:43 -0300 |
commit | df2965f98da233fdefa44b23bb8c90ab1bb6098f (patch) | |
tree | 398f679f1c752a940f7dff1fbc2e1080a2b8b931 | |
parent | 51df8cf09a7a3ec96bb203b7d5ad1af47440ef5a (diff) | |
download | puppet-ikiwiki-df2965f98da233fdefa44b23bb8c90ab1bb6098f.tar.gz puppet-ikiwiki-df2965f98da233fdefa44b23bb8c90ab1bb6098f.tar.bz2 |
Fixing origin url on deploy
-rw-r--r-- | templates/deploy.sh.erb | 3 |
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 |