summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 5 insertions, 2 deletions
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 > \