diff options
author | William Behrens <35979547+WilliamBehrens@users.noreply.github.com> | 2022-08-03 19:01:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 19:01:28 -0500 |
commit | dd889ffeef2c93071c7489cd21b6455fdc5c8b3f (patch) | |
tree | d439a42270f22c02da9dcf087d08a63099f4425e | |
parent | dcbedb1917b992d4746c04846e44ae82fdc23069 (diff) |
use apt-get to install packages
This fixes the output "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."
-rwxr-xr-x | emailwiz.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emailwiz.sh b/emailwiz.sh index 74b2332..a85c259 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -37,9 +37,9 @@ echo "Setting umask to 0022..." umask 0022 echo "Installing programs..." -apt install postfix postfix-pcre dovecot-imapd dovecot-sieve opendkim spamassassin spamc +apt-get install postfix postfix-pcre dovecot-imapd dovecot-sieve opendkim spamassassin spamc # Check if OpenDKIM is installed and install it if not. -which opendkim-genkey >/dev/null 2>&1 || apt install opendkim-tools +which opendkim-genkey >/dev/null 2>&1 || apt-get install opendkim-tools domain="$(cat /etc/mailname)" subdom=${MAIL_SUBDOM:-mail} maildomain="$subdom.$domain" |