From 6138e2358a6f319d8e2f3bd5d97a439d9be5993d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Nov 2016 20:29:50 +0000 Subject: [PATCH] Password quotes --- src/freedombone-utils-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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