From 04328ce7a484510f464e0e3f44433769ebbe8a92 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 8 Aug 2019 12:04:18 +0200 Subject: Install: RESPONSIBLE_EMAIL --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 0dd0845..2fa59ba 100755 --- a/install.sh +++ b/install.sh @@ -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 > \ -- cgit v1.2.3