Merge branch 'no-local-psql'
This commit is contained in:
commit
fc16c53886
|
@ -186,8 +186,6 @@ in
|
||||||
|
|
||||||
systemd.services."hydra-init" =
|
systemd.services."hydra-init" =
|
||||||
{ wantedBy = [ "multi-user.target" ];
|
{ wantedBy = [ "multi-user.target" ];
|
||||||
requires = [ "postgresql.service" ];
|
|
||||||
after = [ "postgresql.service" ];
|
|
||||||
environment = env;
|
environment = env;
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -m 0700 -p ${baseDir}/data
|
mkdir -m 0700 -p ${baseDir}/data
|
||||||
|
@ -206,7 +204,10 @@ in
|
||||||
serviceConfig.User = "hydra";
|
serviceConfig.User = "hydra";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
serviceConfig.RemainAfterExit = true;
|
serviceConfig.RemainAfterExit = true;
|
||||||
};
|
} // (optionalAttrs (cfg.dbi == "dbi:Pg:dbname=hydra;user=hydra;") {
|
||||||
|
requires = [ "postgresql.service" ];
|
||||||
|
after = [ "postgresql.service" ];
|
||||||
|
});
|
||||||
|
|
||||||
systemd.services."hydra-server" =
|
systemd.services."hydra-server" =
|
||||||
{ wantedBy = [ "multi-user.target" ];
|
{ wantedBy = [ "multi-user.target" ];
|
||||||
|
|
Loading…
Reference in a new issue