diff options
author | Márton Boros <martonboros@gmail.com> | 2017-10-22 14:09:38 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-10-22 15:23:25 +0200 |
commit | a89b28f8b7e3281074ca29beca332a5aea598bc6 (patch) | |
tree | aa6bd01da4b1cec99a2c25387e4f2bc687512cfe /nixos | |
parent | 0f0f0cbc6fb11f8537c3fe293a8451174106274c (diff) |
nixos/gitlab: fix startup script
The preStart script used a hardcoded "git" user instead of the cfg value.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index 1399a36ffeedb..740cbc141b539 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -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 {} \; ''; |