Updating Postorius image

This commit is contained in:
Danil Smirnov
2020-08-24 16:09:45 +00:00
parent 215fe7890e
commit 42d27a9074
2 changed files with 12 additions and 5 deletions

View File

@@ -113,7 +113,12 @@ else
fi
# Collect static for the django installation.
python3 manage.py collectstatic --noinput
python3 manage.py collectstatic --noinput --clear --verbosity 0
# Compile all the installed po files to mo.
SITE_DIR=$(python3 -c 'import site; print(site.getsitepackages()[0])')
echo "Compiling locale files in $SITE_DIR"
cd $SITE_DIR && python3 /opt/mailman-web/manage.py compilemessages && cd -
# Migrate all the data to the database if this is a new installation, otherwise
# this command will upgrade the database.