diff --git a/src/freedombone-utils-backup b/src/freedombone-utils-backup index 95081a2b..0e7b619f 100755 --- a/src/freedombone-utils-backup +++ b/src/freedombone-utils-backup @@ -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