瀏覽代碼

use apt-get to install packages

This fixes the output "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."
pull/230/head
William Behrens 1 年之前
committed by GitHub
父節點
當前提交
dd889ffeef
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      emailwiz.sh

+ 2
- 2
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"


Loading…
取消
儲存