start: fix permissions of /home/git/.ssh in case it is mounted as a volume

This commit is contained in:
Sameer Naik 2013-10-07 01:05:25 +05:30
parent 94ce47776c
commit 76722b81e4

View File

@ -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