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