summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-08 12:55:47 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-08 12:55:47 +0200
commita63fde2ca7730e54204e29b287f6d654f3092399 (patch)
tree55869a68d9192fad8e6b718d78a24d88bc33b8e1
parentfaba92bbc077637e7d05a11c36a20a89faf4a811 (diff)
downloadComm-on-net-a63fde2ca7730e54204e29b287f6d654f3092399.tar.bz2
Comm-on-net-a63fde2ca7730e54204e29b287f6d654f3092399.zip
Install: explicit echo
-rwxr-xr-xinstall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 70ee7a6..6fe3768 100755
--- a/install.sh
+++ b/install.sh
@@ -5,9 +5,9 @@ DEBUG=false # true
set -e
[ "$DEBUG" == 'true' ] && set -x
-if [ -z "$URL" ]; then echo "URL env variable must be set"; exit 1; fi
+if [ -z "$URL" ]; then echo "Error: 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
+ then echo "Error: RESPONSIBLE_EMAIL env variable must be set"; exit 1; fi
echo " * Install dependencies"
@@ -59,7 +59,7 @@ if ! su postgres -c "psql -l" | grep -qs "$DB_NAME"; then
rm /tmp/inst.sql
su postgres -c "createdb --echo --owner $DB_NAME --encoding UNICODE $DB_NAME"
else
- echo " * commonnet database already present"
+ echo "Error: commonnet database already present. Exiting..."
exit 1
fi