Merge pull request #124 from nlewo/pr-dh.pem

postfix: also create the dh.pem if it is empty
This commit is contained in:
Robin Raymond 2018-05-10 13:04:35 +02:00 committed by GitHub
commit 02b0e867d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 \