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:
Maximilian Bosch 2020-03-31 19:13:51 +02:00 committed by GitHub
commit 9157ff4e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,7 @@ in
description = "Renew ACME Certificate for ${cert}";
after = [ "network.target" "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
wantedBy = mkIf (!config.boot.isContainer) [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
# With RemainAfterExit the service is considered active even