Skip to content

Commit 0a8e84b

Browse files
authored
Don't enable smtputf8 when running on alpine on container restart (#224)
1 parent 0286619 commit 0a8e84b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/common-run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ postfix_disable_utf8() {
258258
if [[ -f /etc/alpine-release ]] && [[ "${smtputf8_enable}" == "yes" ]]; then
259259
debug "Running on Alpine. Setting ${emphasis}smtputf8_enable${reset}=${emphasis}no${reset}, as Alpine does not have proper libraries to handle UTF-8"
260260
do_postconf -e smtputf8_enable=no
261-
elif [[ "${smtputf8_enable}" == "no" ]]; then
261+
elif [[ ! -f /etc/alpine-release ]] && [[ "${smtputf8_enable}" == "no" ]]; then
262262
debug "Running on non-Alpine system. Setting ${emphasis}smtputf8_enable${reset}=${emphasis}yes${reset}."
263263
do_postconf -e smtputf8_enable=yes
264264
fi

0 commit comments

Comments
 (0)