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