fix typo in opendkim key generation

This commit is contained in:
Robin Raymond 2017-08-30 14:29:06 +02:00
parent f01e0bdbb3
commit bb4717bf0b

View File

@ -43,7 +43,7 @@ let
'' ''
# Create dkim dir # Create dkim dir
mkdir -p "${dkim_dir}" mkdir -p "${dkim_dir}"
chown opendkim:rmilter "${dkim_dir}" chown rmilter:rmilter "${dkim_dir}"
if [ ! -f "${dkim_key}" ] || [ ! -f "${dkim_txt}" ] if [ ! -f "${dkim_key}" ] || [ ! -f "${dkim_txt}" ]
then then
@ -51,7 +51,7 @@ let
${pkgs.opendkim}/bin/opendkim-genkey -s "${dkim_selector}" \ ${pkgs.opendkim}/bin/opendkim-genkey -s "${dkim_selector}" \
-d ${domain} \ -d ${domain} \
--directory="${dkim_dir}" --directory="${dkim_dir}"
chown opendkim:rmilter "${dkim_key}" chown rmilter:rmilter "${dkim_key}"
fi fi
''; '';
in in
@ -76,7 +76,7 @@ in
''; '';
}; };
services.opendkim = { services.rmilter = {
after = ["dovecot2.service"]; after = ["dovecot2.service"];
preStart = preStart =
'' ''