Fixed a bug with installing opendkim (#1)

The main command for generating DKIM keys (`opendkim`) wasn't installed with just the `opendkim` package.  Added a fix so it would be installed should it not be there the first time `apt` is ran.
This commit is contained in:
pellertson 2019-09-02 19:40:20 -06:00 committed by GitHub
parent 6d387ab15c
commit 30e2072783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,8 @@
echo "Installing programs..." echo "Installing programs..."
apt install postfix dovecot-imapd opendkim spamassassin spamc apt install postfix dovecot-imapd opendkim spamassassin spamc
# Install another requirement for opendikm only if the above command didn't get it already
[ -e $(which opendkim-genkey) ] || apt install opendkim-tools
domain="$(cat /etc/mailname)" domain="$(cat /etc/mailname)"
subdom="mail" subdom="mail"
maildomain="$subdom.$domain" maildomain="$subdom.$domain"