diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-08 12:04:18 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-08 12:04:18 +0200 |
commit | 04328ce7a484510f464e0e3f44433769ebbe8a92 (patch) | |
tree | aff9b4d03091862f7527b5a17cdeaef21ce3e62d /install.sh | |
parent | fd1c313de58628a5b5a9a720e0c8620bc4a7c6ff (diff) | |
download | Comm-on-net-04328ce7a484510f464e0e3f44433769ebbe8a92.tar.bz2 Comm-on-net-04328ce7a484510f464e0e3f44433769ebbe8a92.zip |
Install: RESPONSIBLE_EMAIL
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 > \ |