diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-08 12:07:55 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-08 12:07:55 +0200 |
commit | 3b13e3bbfe7347c9684981453eed212bc4a82dcd (patch) | |
tree | 876f2b0bec3ebc0848f063f05f1c18585555d672 /install.sh | |
parent | 04328ce7a484510f464e0e3f44433769ebbe8a92 (diff) | |
download | Comm-on-net-3b13e3bbfe7347c9684981453eed212bc4a82dcd.tar.bz2 Comm-on-net-3b13e3bbfe7347c9684981453eed212bc4a82dcd.zip |
Install: fix syntax
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,9 @@ #!/bin/bash +DEBUG=false # true + set -e -set -x +[ "$DEBUG" == 'true' ] && set -x if [ -z "$URL" ]; then echo "URL env variable must be set"; exit 1; fi if [ -z "$RESPONSIBLE_EMAIL" ]; @@ -27,8 +29,8 @@ 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;"\ - "s|RESPONSIBLE_EMAIL = None|RESPONSIBLE_EMAIL = '$RESPONSIBLE_EMAIL'|;" \ +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/ |