Add psycopg2 in mailman-web container.

Copy the settings file from /opt/mailman/web/ in the host system which
is supposed to be mounted at /opt/mailman-web-data/ in the container.
This commit is contained in:
Abhilash Raj
2017-03-29 22:27:06 -07:00
parent 131d1c0b8a
commit 12e8b04128
3 changed files with 12 additions and 490 deletions

View File

@@ -20,6 +20,16 @@ if [[ ! $(pwd) == '/opt/mailman-web' ]]; then
fi
# Check if the settings file exists, exit it not.
if [[ ! -e /opt/mailman-web-data/settings.py ]]; then
"Settings file does not exist, please provide one..."
exit 1
fi
# Copy the settings file from /opt/mailman-web-data/ to the pwd because
# it is not on python-path.
cp /opt/mailman-web-data/settings.py /opt/mailman-web/settings.py
# Collect static for the django installation.
python manage.py collectstatic --noinput