#!/bin/sh
if [ "$USER" == "root" ]; then
echo "This command will run under the mailman3 user (mailman3)."
su - -s /bin/bash mailman -c "$0 $*"
elif [ "$USER" != "mailman" ]; then
echo "This command must be run under the mailman3 user (mailman)."
exit 1
else
export PYTHONPATH=/usr/lib/mailman3/.local/lib/python3.14/site-packages
/usr/libexec/mailman3/mailman-web $*
fi
