diff options
author | Markus Mueller <john.subscriber@markus.institute> | 2017-10-14 20:54:13 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-10-16 14:58:02 +0200 |
commit | f250015ea396560b42c51c9289f5b65202882780 (patch) | |
tree | 9a05a441336427d9d5d1aac682f73445675d6a52 /nixos | |
parent | 3f4a6754ef54b7584ab9779081e66b480a517db4 (diff) | |
download | nixlib-f250015ea396560b42c51c9289f5b65202882780.tar nixlib-f250015ea396560b42c51c9289f5b65202882780.tar.gz nixlib-f250015ea396560b42c51c9289f5b65202882780.tar.bz2 nixlib-f250015ea396560b42c51c9289f5b65202882780.tar.lz nixlib-f250015ea396560b42c51c9289f5b65202882780.tar.xz nixlib-f250015ea396560b42c51c9289f5b65202882780.tar.zst nixlib-f250015ea396560b42c51c9289f5b65202882780.zip |
nixos/gitlab: fix uploades directory permissions
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index 0fa9e417785f..38c73a13de9d 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -639,10 +639,10 @@ in { chmod -R ug+rwX,o-rwx ${cfg.statePath}/repositories chmod -R ug-s ${cfg.statePath}/repositories find ${cfg.statePath}/repositories -type d -print0 | xargs -0 chmod g+s - chmod 700 ${cfg.statePath}/uploads + chmod 770 ${cfg.statePath}/uploads chown -R git ${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 0700 {} \; + find ${cfg.statePath}/uploads -type d -not -path ${cfg.statePath}/uploads -exec chmod 0770 {} \; ''; serviceConfig = { |