summaryrefslogtreecommitdiff
path: root/install-repos
diff options
context:
space:
mode:
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