From 721d07ffb94159a4d7421e0f2c8188d83e3e5138 Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Fri, 24 Apr 2015 13:56:04 +0200 Subject: [PATCH] fix env --- mysql-backup-s3/backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mysql-backup-s3/backup.sh b/mysql-backup-s3/backup.sh index bfb2ff2..3fed760 100644 --- a/mysql-backup-s3/backup.sh +++ b/mysql-backup-s3/backup.sh @@ -17,17 +17,17 @@ if [ "${S3_BUCKET}" = "**None**" ]; then exit 1 fi -if [ -z "${MYSQL_HOST}" ]; then +if [ "${MYSQL_HOST}" = "**None**" ]; then echo "You need to set the MYSQL_HOST environment variable." exit 1 fi -if [ -z "${MYSQL_USER}" ]; then +if [ "${MYSQL_USER}" = "**None**" ]; then echo "You need to set the MYSQL_USER environment variable." exit 1 fi -if [ -z "${MYSQL_PASSWORD}" ]; then +if [ "${MYSQL_PASSWORD}" = "**None**" ]; then echo "You need to set the MYSQL_PASSWORD environment variable or link to a container named MYSQL." exit 1 fi