hydra-module.nix: More paranoid permissions on the data directory
This commit is contained in:
parent
2614fe21fb
commit
ed9d57d0a4
|
@ -180,7 +180,7 @@ in
|
|||
after = [ "postgresql.service" ];
|
||||
environment = env;
|
||||
script = ''
|
||||
mkdir -p ${baseDir}/data
|
||||
mkdir -m 0700 -p ${baseDir}/data
|
||||
chown hydra ${baseDir}/data
|
||||
ln -sf ${hydraConf} ${baseDir}/data/hydra.conf
|
||||
${optionalString (cfg.dbi == "dbi:Pg:dbname=hydra;user=hydra;") ''
|
||||
|
|
Loading…
Reference in a new issue