From 7874a8fadc8f9e897c8ac44c9eec32fd3cc6cee9 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 30 Dec 2024 09:27:37 -0800 Subject: [PATCH] set utf8mb4 charset in mailman-web --- install-mm3.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-mm3.sh b/install-mm3.sh index f807cb0..d773629 100755 --- a/install-mm3.sh +++ b/install-mm3.sh @@ -46,6 +46,9 @@ IP=`ip route get 1.1.1.1| head -n 1 | cut -d ' ' -f 7` sed -i "s|root@localhost|webmaster@$FQDN|g" /etc/mailman3/mailman-web.py sed -i "s|MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1')|MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1', '$IP')|g" /etc/mailman3/mailman-web.py sed -i "s|'django_mailman3.lib.auth.fedora',|#'django_mailman3.lib.auth.fedora',|g" /etc/mailman3/mailman-web.py +# the multiple slashes in the append are for adding spaces +sed -i "/'OPTIONS': {/a \ \ \ \ \ \ \ \ \ \ \ \ 'charset': 'utf8mb4'," /etc/mailman3/mailman-web.py +sed -i "/'OPTIONS': {/a \ \ \ \ \ \ \ \ \ \ \ \ # use utf8mb4, which is what the tables should already be set to" /etc/mailman3/mailman-web.py sed -i 's|# SECURE_PROXY_SSL_HEADER =|SECURE_PROXY_SSL_HEADER =|g' /etc/mailman3/mailman-web.py sed -i "s|TIME_ZONE =.*|TIME_ZONE = '$TIMEZONE'|g" /etc/mailman3/mailman-web.py sed -i "s|localhost.local|$FQDN|g" /etc/mailman3/mailman-web.py