Merge pull request #83704 from Ma27/acme-container
nixos/acme: don't depend on multi-user.target inside a container
This commit is contained in:
commit
9157ff4e74
@ -318,7 +318,7 @@ in
|
|||||||
description = "Renew ACME Certificate for ${cert}";
|
description = "Renew ACME Certificate for ${cert}";
|
||||||
after = [ "network.target" "network-online.target" ];
|
after = [ "network.target" "network-online.target" ];
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = mkIf (!config.boot.isContainer) [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
# With RemainAfterExit the service is considered active even
|
# With RemainAfterExit the service is considered active even
|
||||||
|
Loading…
x
Reference in New Issue
Block a user