From 740f9843c8397fe2aa0b2da7c790cd68ea1edaba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 29 Jan 2019 14:42:04 +0100 Subject: Restart pure-ftpd after changing certificate --- nixops/modules/ftp/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixops/modules/ftp') diff --git a/nixops/modules/ftp/default.nix b/nixops/modules/ftp/default.nix index c717bfd..321e032 100644 --- a/nixops/modules/ftp/default.nix +++ b/nixops/modules/ftp/default.nix @@ -13,6 +13,9 @@ config = lib.mkIf config.services.pure-ftpd.enable { security.acme.certs."ftp" = config.services.myCertificates.certConfig // { domain = "eldiron.immae.eu"; + postRun = '' + systemctl restart pure-ftpd.service + ''; }; nixpkgs.config.packageOverrides = oldpkgs: rec { -- cgit v1.2.3