X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mail-setup;h=5d184932481fdbafee2d9c5e63be3584446df8dc;hb=b28eebdf9143aa17733f233b30b96f462008f3b6;hp=de9db482acad97f7c8cb4b23e4b856c7a8d87994;hpb=ea108a03dfa2d7f73447c0b14210d766e5ee5d9b;p=distro-setup diff --git a/mail-setup b/mail-setup index de9db48..5d18493 100755 --- a/mail-setup +++ b/mail-setup @@ -1249,13 +1249,6 @@ warn add_header = X-Spam_report: $spam_report add_header = X-Spam_action: $spam_action -warn - !hosts = +iank_trusted - !authenticated = plain_server:login_server - condition = ${if def:malware_name} - remove_header = Subject: - add_header = Subject: [Clamav warning: $malware_name] $h_subject - log_message = heuristic malware warning: $malware_name #accept # spf = pass:fail:softfail:none:neutral:permerror:temperror @@ -2281,8 +2274,10 @@ fwrite(STDOUT, "config.php - m rm -f tmp.php + e running php tmp.php + php tmp.php >config.php + # leave in place for debugging + #m rm -f tmp.php m sudo -u www-data php $ncdir/occ maintenance:update:htaccess list=$(sudo -u www-data php $ncdir/occ --output=json_pretty app:list) # user_external not compaible with nc 23 @@ -2316,14 +2311,12 @@ EOF systemctl enable --now $ncbase.timer i /usr/local/bin/ncup <<'EOFOUTER' #!/bin/bash -if ! test "$BASH_VERSION"; then echo "error: shell is not bash" >&2; exit 1; fi -shopt -s inherit_errexit 2>/dev/null ||: # ignore fail in bash < 4.4 -set -eE -o pipefail -trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" exit status: $?, PIPESTATUS: ${PIPESTATUS[*]}" >&2' ERR -ncbase=$1 -if ! php /var/www/$ncbase/updater/updater.phar -n; then - echo failed nextcloud update for $ncbase >&2 +source /usr/local/lib/err + +m() { printf "%s\n" "$*"; "$@"; } +err-cleanup() { +echo failed nextcloud update for $ncbase >&2 /sbin/exim -t <>/etc/exim4/conf.d/main/000_local <>/etc/cron.d/mailtest <