diff options
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,6 +4,8 @@ set -e set -x if [ -z "$URL" ]; then echo "URL env variable must be set"; exit 1; fi +if [ -z "$RESPONSIBLE_EMAIL" ]; + then echo "RESPONSIBLE_EMAIL env variable must be set"; exit 1; fi echo " * Install dependencies" @@ -25,8 +27,9 @@ echo " * Creating conf files" mkdir -p /var/lib/uwsgi/run chown -R www-data:www-data /var/lib/uwsgi/run -sed -s "s|#PASSWORD#|$PASSWORD|g;" commonnet/local_settings.py.sample > \ - conf/local_settings.py +sed -s "s|#PASSWORD#|$PASSWORD|g;"\ + "s|RESPONSIBLE_EMAIL = None|RESPONSIBLE_EMAIL = '$RESPONSIBLE_EMAIL'|;" \ + commonnet/local_settings.py.sample > conf/local_settings.py ln -s "$PWD"/conf/local_settings.py commonnet/ sed -s "s|#URL#|$URL|g;" conf/uwsgi.ini.template > \ |