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" ];
|
after = [ "postgresql.service" ];
|
||||||
environment = env;
|
environment = env;
|
||||||
script = ''
|
script = ''
|
||||||
mkdir -p ${baseDir}/data
|
mkdir -m 0700 -p ${baseDir}/data
|
||||||
chown hydra ${baseDir}/data
|
chown hydra ${baseDir}/data
|
||||||
ln -sf ${hydraConf} ${baseDir}/data/hydra.conf
|
ln -sf ${hydraConf} ${baseDir}/data/hydra.conf
|
||||||
${optionalString (cfg.dbi == "dbi:Pg:dbname=hydra;user=hydra;") ''
|
${optionalString (cfg.dbi == "dbi:Pg:dbname=hydra;user=hydra;") ''
|
||||||
|
|
Loading…
Reference in a new issue