From 2bdd95b7d2ccfa0989c08890c8ad89fa99b81aa9 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Mon, 7 Oct 2013 10:24:45 +0530 Subject: [PATCH] start: give ownership of /home/git/.ssh to git user --- resources/start | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/start b/resources/start index 781a5611..9fb173d9 100755 --- a/resources/start +++ b/resources/start @@ -88,9 +88,10 @@ sudo chmod -R 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 -chmod 700 /home/git/.ssh touch /home/git/.ssh/authorized_keys +chmod 700 /home/git/.ssh chmod 600 /home/git/.ssh/authorized_keys +chown -R git:git /home/git/.ssh if [ "$DB_INIT" == "yes" ]; then sudo -u git -H force=yes bundle exec rake gitlab:setup RAILS_ENV=production