configure POSTORIUS_TEMPLATE_BASE_URL to use FQDN on install

This commit is contained in:
Matthew Saunders Brown 2024-12-09 16:19:04 -08:00
parent f98defc419
commit d4c0a6fa6f

View File

@ -51,6 +51,7 @@ 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
sed -i 's|postorius@{}|webmaster@{}|g' /etc/mailman3/mailman-web.py
sed -i 's|root@{}|webmaster@{}|g' /etc/mailman3/mailman-web.py
sed -i "s|^POSTORIUS_TEMPLATE_BASE_URL.*|POSTORIUS_TEMPLATE_BASE_URL = 'https://$FQDN/mailman3/'|g" /etc/mailman3/mailman-web.py
echo "" >> /etc/mailman3/mailman-web.py
echo "# fix retry must be larger than timeout error" >> /etc/mailman3/mailman-web.py
echo "Q_CLUSTER = {" >> /etc/mailman3/mailman-web.py