diff options
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 |
commit | a63fde2ca7730e54204e29b287f6d654f3092399 (patch) | |
tree | 55869a68d9192fad8e6b718d78a24d88bc33b8e1 | |
parent | faba92bbc077637e7d05a11c36a20a89faf4a811 (diff) | |
download | Comm-on-net-a63fde2ca7730e54204e29b287f6d654f3092399.tar.bz2 Comm-on-net-a63fde2ca7730e54204e29b287f6d654f3092399.zip |
Install: explicit echo
-rwxr-xr-x | install.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |