Password quotes

This commit is contained in:
Bob Mottram 2016-11-01 20:29:09 +00:00
parent d976dd9ba8
commit 583c5d5211
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ function backup_database_remote {
mkdir -p ${local_database_dir}
fi
echo "Obtaining ${1} database backup"
mysqldump --password=$DATABASE_PASSWORD ${1} > ${local_database_dir}/${1}.sql
mysqldump --password="$DATABASE_PASSWORD" ${1} > ${local_database_dir}/${1}.sql
if [ -f ${local_database_dir}/${1}.sql ]; then
if [ ! -s ${local_database_dir}/${1}.sql ]; then
echo $"${1} database could not be saved"