summaryrefslogtreecommitdiff
path: root/install-repos
diff options
context:
space:
mode:
authorCharlie <root@memberwebs.com>2010-08-24 20:04:53 +0000
committerCharlie <root@memberwebs.com>2010-08-24 20:04:53 +0000
commit8b5ecd8d975d79a96343abc1fb5453bedbb8f972 (patch)
tree8a20159e5a45a8b75ba7f58f7b66c62935fcb484 /install-repos
parenta672ed8caa6ea75b2f3b4857e8ffafd3d737456d (diff)
Commit some old changes
Diffstat (limited to 'install-repos')
-rwxr-xr-xinstall-repos12
1 files changed, 8 insertions, 4 deletions
diff --git a/install-repos b/install-repos
index d070ba1..ce8532a 100755
--- a/install-repos
+++ b/install-repos
@@ -17,10 +17,10 @@ for git in $REPOS; do
echo $name
# Prepare the repository
- chown -R www:www .
+ chown -R stef:wheel .
ln -sf $git $DIR/$simple
- find . -type f -print0 | xargs -0 chmod 660
- find . -type d -print0 | xargs -0 chmod 770
+ find . -type f -print0 | xargs -0 chmod 664
+ find . -type d -print0 | xargs -0 chmod 775
# Install hooks
for hook in $HOOKS; do
@@ -28,9 +28,12 @@ for git in $REPOS; do
done
# Repository settings
- git config core.sharedRepository=0660 || true
+ git config core.sharedRepository=0664 || true
git config receive.denyNonFastforwards=true || true
touch git-daemon-export-ok
+ if [ ! -f git-receive-allow ]; then
+ touch git-receive-allow
+ fi
# Add to cgit list
(
@@ -40,6 +43,7 @@ for git in $REPOS; do
echo "repo.url=$simple"
echo "repo.path=$git"
echo "repo.desc=$simple"
+ echo "repo.owner=stef@memberwebs.com"
fi
echo
) >> $DIR/cgit-repo-rc