nsd: ConditionPathExists all files
This commit is contained in:
parent
125ebdac56
commit
9a7e42b95d
@ -188,7 +188,12 @@
|
|||||||
systemd.services.nsd-control-setup = {
|
systemd.services.nsd-control-setup = {
|
||||||
requiredBy = ["nsd.service"];
|
requiredBy = ["nsd.service"];
|
||||||
before = ["nsd.service"];
|
before = ["nsd.service"];
|
||||||
unitConfig.ConditionPathExists = "!/etc/nsd/nsd_control.pem";
|
unitConfig.ConditionPathExists = [
|
||||||
|
"!/etc/nsd/nsd_control.key"
|
||||||
|
"!/etc/nsd/nsd_control.pem"
|
||||||
|
"!/etc/nsd/nsd_server.key"
|
||||||
|
"!/etc/nsd/nsd_server.pem"
|
||||||
|
];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
UMask = 0077;
|
UMask = 0077;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
systemd.services.deployerbot = {
|
systemd.services.deployerbot = {
|
||||||
description = "Update all known systems";
|
description = "Update all known systems";
|
||||||
environment = {TZ = "UTC";};
|
environment = {TZ = "UTC";};
|
||||||
path = [ pkgs.git pkgs.openssh pkgs.nix ];
|
path = [pkgs.git pkgs.openssh pkgs.nix];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "deployerbot-main";
|
User = "deployerbot-main";
|
||||||
|
Loading…
Reference in New Issue
Block a user