move scripts to external files

This commit is contained in:
Robin Raymond 2017-09-03 16:00:10 +02:00
parent b3f7ee38cb
commit 0c20bb3a85
2 changed files with 15 additions and 15 deletions

View file

@ -0,0 +1,14 @@
# Create dkim dir
mkdir -p "${cfg.dkimKeyDirectory}"
chown rmilter:rmilter "${cfg.dkimKeyDirectory}"
if [ ! -f "${dkim_key}" ] || [ ! -f "${dkim_txt}" ]
then
${pkgs.opendkim}/bin/opendkim-genkey -s "${cfg.dkimSelector}" \
-d ${cfg.domain} \
--directory="${cfg.dkimKeyDirectory}"
chown rmilter:rmilter "${dkim_key}"
fi
# vim: set filetype=sh