mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-29 12:30:34 +05: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
@ -41,7 +41,7 @@ let
|
|||||||
createDhParameterFile =
|
createDhParameterFile =
|
||||||
''
|
''
|
||||||
# Create a dh parameter file
|
# Create a dh parameter file
|
||||||
if [ ! -f "${cfg.certificateDirectory}/dh.pem" ]
|
if [ ! -s "${cfg.certificateDirectory}/dh.pem" ]
|
||||||
then
|
then
|
||||||
mkdir -p "${cfg.certificateDirectory}"
|
mkdir -p "${cfg.certificateDirectory}"
|
||||||
${pkgs.openssl}/bin/openssl \
|
${pkgs.openssl}/bin/openssl \
|
||||||
|
Loading…
Reference in New Issue
Block a user