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
1 changed files with 3 additions and 3 deletions

View File

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