diff options
author | Niklas Hambüchen <mail@nh2.me> | 2022-02-15 16:42:11 +0100 |
---|---|---|
committer | lewo <lewo@abesis.fr> | 2022-05-24 20:11:52 +0000 |
commit | 6284a20f77268d037823794f36396ab2e6b84a56 (patch) | |
tree | 41c90c90ff7f30b60a38099c41d49e0c10ff563c | |
parent | 4396125ebbbaecbaba0f8e0afb25e492b3be5795 (diff) |
acme: Switch from `postRun` to `reloadServices` to fix hangs. Fixes #232
-rw-r--r-- | mail-server/nginx.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail-server/nginx.nix b/mail-server/nginx.nix index 1590c5f..abc6421 100644 --- a/mail-server/nginx.nix +++ b/mail-server/nginx.nix @@ -36,9 +36,9 @@ in }; }; - security.acme.certs."${cfg.fqdn}".postRun = '' - systemctl reload postfix - systemctl reload dovecot2 - ''; + security.acme.certs."${cfg.fqdn}".reloadServices = [ + "postfix.service" + "dovecot2.service" + ]; }; } |