diff options
-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/ |