From 76722b81e4bd1bf3f8752db7da77052e4e46680a Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Mon, 7 Oct 2013 01:05:25 +0530 Subject: [PATCH] start: fix permissions of /home/git/.ssh in case it is mounted as a volume --- resources/start | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/start b/resources/start index adf77a78..54611769 100755 --- a/resources/start +++ b/resources/start @@ -88,6 +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 600 /home/git/.ssh/authorized_keys + if [ "$DB_INIT" == "yes" ]; then sudo -u git -H force=yes bundle exec rake gitlab:setup RAILS_ENV=production fi