From 3b13e3bbfe7347c9684981453eed212bc4a82dcd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 8 Aug 2019 12:07:55 +0200 Subject: Install: fix syntax --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 2fa59ba..fdbad9e 100755 --- a/install.sh +++ b/install.sh @@ -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/ -- cgit v1.2.3