mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
start: do not run chown/chmod on /home/git/repositories/ recursively
This commit is contained in:
parent
427d411097
commit
7214a21280
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user