mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-27 07:26:22 +01:00
Merge pull request #124 from nlewo/pr-dh.pem
postfix: also create the dh.pem if it is empty
This commit is contained in:
commit
02b0e867d2
1 changed files with 1 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue