From e63329ad4e4078b16862c22a09339404c6fc5060 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 1 Nov 2020 20:09:38 -0500 Subject: [PATCH] minor improvements --- mail-setup | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mail-setup b/mail-setup index 1798fd6..18f0357 100755 --- a/mail-setup +++ b/mail-setup @@ -82,7 +82,6 @@ elif [[ -s /a/bin/errhandle/err ]]; then source /a/bin/errhandle/err else err "no err tracing script found" - exit 1 fi source /a/bin/distro-functions/src/identify-distros source /a/bin/distro-functions/src/package-manager-abstractions @@ -231,7 +230,7 @@ fi pre="${0##*/}:" m() { printf "$pre %s\n" "$*"; "$@"; } e() { printf "$pre %s\n" "$*"; } -err() { echo "[$(date +'%Y-%m-%d %H:%M:%S%z')]: $0: $*" >&2; } +err() { echo "[$(date +'%Y-%m-%d %H:%M:%S%z')]: $0: $*" >&2; exit 1; } reload=false i() { # install file local tmp tmpdir dest="$1" @@ -466,7 +465,7 @@ m chattr +i /etc/nn-resolv/stub-resolv.conf nn_progs=(exim4) -if [[ $HOSTNAME == "$MAIL_HOST" ]]; then +if mailhost; then # Note dovecots lmtp doesnt need to be in the same nn to accept delivery. nn_progs+=(spamassassin dovecot) fi -- 2.30.2