summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-09-03 06:11:36 -0400
committerGitHub <noreply@github.com>2019-09-03 06:11:36 -0400
commitbe2b5313272731029e545f7550ea50b63ded909d (patch)
treef2fe845b40cdf4762e1b79476c9efdb524645195
parent6d387ab15c774bb8b7a034db48857573ec6bad15 (diff)
parent30e2072783aa0941ee67ef0c38f2566ebb646f81 (diff)
Merge pull request #13 from pellertson/master
Make sure the opendkim tools are installed
-rwxr-xr-xemailwiz.sh2
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"