mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
start: fix permissions of /home/git/.ssh in case it is mounted as a volume
This commit is contained in:
parent
94ce47776c
commit
76722b81e4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user