git.iko.soy/typeable/nixpkgs
on master help sign in
gitlab module: fix permissions and path
commiteedffc52777d9ff6c5a7fce2f07fa41916c569ca authorRobin Gloster <mail@glob.in> dateSat 2 Sep 2017, 23:31 (9 years ago) parentaaff3fa
1 file changed+3−3
nixos/modules/services/misc/gitlab.nix+3−3
nixos/modules/services/misc/gitlab.nix+3−3
@@ -138,7 +138,7 @@ let
138138 makeWrapper ${cfg.packages.gitlab.ruby-env}/bin/bundle $out/bin/gitlab-bundle \
139139 ${concatStrings (mapAttrsToList (name: value: "--set ${name} '${value}' ") gitlabEnv)} \
140140 --set GITLAB_CONFIG_PATH '${cfg.statePath}/config' \
141− --set PATH '${lib.makeBinPath [ pkgs.nodejs pkgs.gzip config.services.postgresql.package ]}:$PATH' \
141+ --set PATH '${lib.makeBinPath [ pkgs.nodejs pkgs.gzip pkgs.git pkgs.gnutar config.services.postgresql.package ]}:$PATH' \
142142 --set RAKEOPT '-f ${cfg.packages.gitlab}/share/gitlab/Rakefile' \
143143 --run 'cd ${cfg.packages.gitlab}/share/gitlab'
144144 makeWrapper $out/bin/gitlab-bundle $out/bin/gitlab-rake \
@@ -559,7 +559,6 @@ in {
559559 mkdir -p ${gitlabEnv.HOME}/.ssh
560560 touch ${gitlabEnv.HOME}/.ssh/authorized_keys
561561 chown -R ${cfg.user}:${cfg.group} ${gitlabEnv.HOME}/
562− chmod -R u+rwX,go-rwx+X ${gitlabEnv.HOME}/
563562
564563 cp -rf ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
565564 ${optionalString cfg.smtp.enable ''
@@ -607,7 +606,8 @@ in {
607606 # Change permissions in the last step because some of the
608607 # intermediary scripts like to create directories as root.
609608 chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}
610− chmod -R u+rwX,go-rwx+X ${cfg.statePath}
609+ chmod -R ug+rwX,o-rwx+X ${cfg.statePath}
610+ chmod -R u+rwX,go-rwx+X ${gitlabEnv.HOME}
611611 '';
612612
613613 serviceConfig = {