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" \
|
sed -e "s,#secretkey#,$KEY,g" \
|
||||||
-e "s,#dbpass#,$DBPASS,g" \
|
-e "s,#dbpass#,$DBPASS,g" \
|
||||||
-i ${runConfig}
|
-i ${runConfig}
|
||||||
chmod 440 ${runConfig} ${secretKey}
|
|
||||||
''}
|
''}
|
||||||
|
|
||||||
mkdir -p ${cfg.repositoryRoot}
|
mkdir -p ${cfg.repositoryRoot}
|
||||||
|
@ -239,6 +238,7 @@ in
|
||||||
WorkingDirectory = cfg.stateDir;
|
WorkingDirectory = cfg.stateDir;
|
||||||
ExecStart = "${pkgs.gogs}/bin/gogs web";
|
ExecStart = "${pkgs.gogs}/bin/gogs web";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
UMask = "0027";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user