diff --git a/mail-server/systemd.nix b/mail-server/systemd.nix index d42730e..1a3f8b9 100644 --- a/mail-server/systemd.nix +++ b/mail-server/systemd.nix @@ -41,7 +41,7 @@ let createDhParameterFile = '' # Create a dh parameter file - if [ ! -f "${cfg.certificateDirectory}/dh.pem" ] + if [ ! -s "${cfg.certificateDirectory}/dh.pem" ] then mkdir -p "${cfg.certificateDirectory}" ${pkgs.openssl}/bin/openssl \