diff options
author | Robin Gloster <mail@glob.in> | 2017-09-28 20:09:31 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-09-28 23:14:31 +0200 |
commit | 57ed9e7e1df221ed3e34504927e5f1efd3238cdd (patch) | |
tree | cdc4ed7451d8d5042f1b11812f852bcac3b1a99c /nixos | |
parent | bb005d138e5730f95873adf2dc3877fbdc59f46e (diff) | |
download | nixlib-57ed9e7e1df221ed3e34504927e5f1efd3238cdd.tar nixlib-57ed9e7e1df221ed3e34504927e5f1efd3238cdd.tar.gz nixlib-57ed9e7e1df221ed3e34504927e5f1efd3238cdd.tar.bz2 nixlib-57ed9e7e1df221ed3e34504927e5f1efd3238cdd.tar.lz nixlib-57ed9e7e1df221ed3e34504927e5f1efd3238cdd.tar.xz nixlib-57ed9e7e1df221ed3e34504927e5f1efd3238cdd.tar.zst nixlib-57ed9e7e1df221ed3e34504927e5f1efd3238cdd.zip |
gitlab: 9.5.5 -> 10.0.2
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index d6c8ac547246..280c66d0aaf2 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -635,6 +635,13 @@ in { chown -R ${cfg.user}:${cfg.group} ${cfg.statePath} chmod -R ug+rwX,o-rwx+X ${cfg.statePath} chmod -R u+rwX,go-rwx+X ${gitlabEnv.HOME} + 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 + 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 {} \; ''; serviceConfig = { |