nixos/gitlab: fix startup script

The preStart script used a hardcoded "git" user instead of the cfg value.
This commit is contained in:
Márton Boros 2017-10-22 14:09:38 +02:00 committed by Robin Gloster
parent 0f0f0cbc6f
commit a89b28f8b7

View file

@ -646,7 +646,7 @@ in {
chmod -R ug-s ${cfg.statePath}/repositories
find ${cfg.statePath}/repositories -type d -print0 | xargs -0 chmod g+s
chmod 770 ${cfg.statePath}/uploads
chown -R git ${cfg.statePath}/uploads
chown -R ${cfg.user} ${cfg.statePath}/uploads
find ${cfg.statePath}/uploads -type f -exec chmod 0644 {} \;
find ${cfg.statePath}/uploads -type d -not -path ${cfg.statePath}/uploads -exec chmod 0770 {} \;
'';