From 0a8e84b8553041eaf914f1af1842f8ea04d24dcd Mon Sep 17 00:00:00 2001 From: Nico Weichbrodt Date: Thu, 30 Jan 2025 19:45:05 +0100 Subject: [PATCH] Don't enable smtputf8 when running on alpine on container restart (#224) --- scripts/common-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common-run.sh b/scripts/common-run.sh index 9705882..b065a16 100755 --- a/scripts/common-run.sh +++ b/scripts/common-run.sh @@ -258,7 +258,7 @@ postfix_disable_utf8() { if [[ -f /etc/alpine-release ]] && [[ "${smtputf8_enable}" == "yes" ]]; then debug "Running on Alpine. Setting ${emphasis}smtputf8_enable${reset}=${emphasis}no${reset}, as Alpine does not have proper libraries to handle UTF-8" do_postconf -e smtputf8_enable=no - elif [[ "${smtputf8_enable}" == "no" ]]; then + elif [[ ! -f /etc/alpine-release ]] && [[ "${smtputf8_enable}" == "no" ]]; then debug "Running on non-Alpine system. Setting ${emphasis}smtputf8_enable${reset}=${emphasis}yes${reset}." do_postconf -e smtputf8_enable=yes fi