From 7214a2128021dcd106c286aebfb80a1007f4ee68 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Tue, 8 Oct 2013 15:30:56 +0530 Subject: [PATCH] start: do not run chown/chmod on /home/git/repositories/ recursively --- resources/start | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/start b/resources/start index 34c7eba1..7b6828d5 100755 --- a/resources/start +++ b/resources/start @@ -98,10 +98,10 @@ sudo -u git -H sed 's/{{DB_USER}}/'${DB_USER}'/' -i /home/git/gitlab/config/data sudo -u git -H sed 's/{{DB_PASSWD}}/'${DB_PASSWD}'/' -i /home/git/gitlab/config/database.yml # make sure /home/git/repositories/ has the right permissions in case it is mounted as a volume. -sudo chmod -R ug+rwX,o-rwx /home/git/repositories/ -sudo chmod -R ug-s /home/git/repositories/ +sudo chmod ug+rwX,o-rwx /home/git/repositories/ +sudo chmod ug-s /home/git/repositories/ find /home/git/repositories/ -type d -print0 | sudo xargs -0 chmod g+s -chown -R git:git /home/git/repositories +chown git:git /home/git/repositories # make sure /home/git/.ssh/ has the right permissions in case it is mounted as a volume. touch /home/git/.ssh/authorized_keys