diff options
Diffstat (limited to 'install.sh')
-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 |