summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh8
1 files 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/