nixos/gitlab: fix startup script
The preStart script used a hardcoded "git" user instead of the cfg value.
This commit is contained in:
parent
0f0f0cbc6f
commit
a89b28f8b7
1 changed files with 1 additions and 1 deletions
|
@ -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 {} \;
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue