mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
nixos/gogs: prefer 'umask' over 'chmod'
This commit is contained in:
parent
6fee21cc2c
commit
8dab54e2b3
@ -217,7 +217,6 @@ in
|
||||
sed -e "s,#secretkey#,$KEY,g" \
|
||||
-e "s,#dbpass#,$DBPASS,g" \
|
||||
-i ${runConfig}
|
||||
chmod 440 ${runConfig} ${secretKey}
|
||||
''}
|
||||
|
||||
mkdir -p ${cfg.repositoryRoot}
|
||||
@ -239,6 +238,7 @@ in
|
||||
WorkingDirectory = cfg.stateDir;
|
||||
ExecStart = "${pkgs.gogs}/bin/gogs web";
|
||||
Restart = "always";
|
||||
UMask = "0027";
|
||||
};
|
||||
|
||||
environment = {
|
||||
|
Loading…
Reference in New Issue
Block a user