Put default configuration in mailman-web and copy only settings_local.py

This commit is contained in:
Abhilash Raj
2017-04-06 13:55:27 -07:00
parent 7f4cb3190a
commit 92add31f4a
2 changed files with 4 additions and 10 deletions

View File

@@ -25,19 +25,13 @@ if [[ ! -e /opt/mailman-web-data/logs/mailmanweb.log ]]; then
fi
# Check if the settings file exists, exit it not.
if [[ ! -e /opt/mailman-web-data/settings.py ]]; then
echo "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
# Check if the settings_local.py file exists, if yes, copy it too.
if [[ -e /opt/mailman-web-data/settings_local.py ]]; then
echo "Copying settings_local.py ..."
cp /opt/mailman-web-data/settings_local.py /opt/mailman-web/settings_local.py
else
echo "settings_local.py not found, it is highly recommended that you provide one/"
echo "Using default configuration to run."
fi
# Collect static for the django installation.