Password quotes

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

View File

@ -530,7 +530,7 @@ function restore_database {
backup_unmount_drive
exit 503
fi
mysqlsuccess=$(mysql -u root --password=$DATABASE_PASSWORD ${1} -o < /root/temp${1}data/${RESTORE_SUBDIR}/temp${1}data/${1}.sql)
mysqlsuccess=$(mysql -u root --password="$DATABASE_PASSWORD" ${1} -o < /root/temp${1}data/${RESTORE_SUBDIR}/temp${1}data/${1}.sql)
if [ ! "$?" = "0" ]; then
echo "$mysqlsuccess"
function_check set_user_permissions