Add a mailman user and setup loggers.

This commit is contained in:
Abhilash Raj
2017-05-28 17:11:41 -07:00
parent 0ae0a55a42
commit 2025f733a9
2 changed files with 20 additions and 4 deletions

View File

@@ -89,4 +89,10 @@ python manage.py collectstatic --noinput
# this command will upgrade the database.
python manage.py migrate
# Create a mailman user with the specific UID and GID and do not create home
# directory for it. Also chown the logs directory to write the files.
useradd -M -U -u 1000 mailman
chown mailman:mailman /opt/mailman-web-data -R
exec $@