diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-10-20 14:04:24 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-10-20 14:04:24 -0200 |
commit | f30637ead1f87c06bbf2ee66a55e8d709b09e18b (patch) | |
tree | d1e8f998ab491c00e4bbe7ea5ea8367955769e84 /files/git-mass-update-server-info | |
parent | 392231ba78ba69df471ebf3209d8e89608677141 (diff) | |
download | puppet-git-f30637ead1f87c06bbf2ee66a55e8d709b09e18b.tar.gz puppet-git-f30637ead1f87c06bbf2ee66a55e8d709b09e18b.tar.bz2 |
Adding git-mass-update-server-info
Diffstat (limited to 'files/git-mass-update-server-info')
-rw-r--r-- | files/git-mass-update-server-info | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/files/git-mass-update-server-info b/files/git-mass-update-server-info new file mode 100644 index 0000000..5735f69 --- /dev/null +++ b/files/git-mass-update-server-info @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Run git-update-server-info on all repositories. +# +# This is script is needed when servir repositories directly +# to dumb servers (eg. via HTTP). +# + +REPOS="/var/git/repositories" + +for repo in `ls $REPOS`; do + ( cd $REPOS/$repo && su gitosis -c "git update-server-info" ) +done |