diff options
author | pellertson <parker@cybertron.ninja> | 2019-09-02 19:40:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-02 19:40:20 -0600 |
commit | 30e2072783aa0941ee67ef0c38f2566ebb646f81 (patch) | |
tree | f2fe845b40cdf4762e1b79476c9efdb524645195 /emailwiz.sh | |
parent | 6d387ab15c774bb8b7a034db48857573ec6bad15 (diff) |
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.
Diffstat (limited to 'emailwiz.sh')
-rwxr-xr-x | emailwiz.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/emailwiz.sh b/emailwiz.sh index cd42e76..ff39ac2 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -17,6 +17,8 @@ echo "Installing programs..." 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)" subdom="mail" maildomain="$subdom.$domain" |