From cf9f544d375767d8c1b21c00ed586c6a62e7e961 Mon Sep 17 00:00:00 2001 From: Matthew LS Date: Fri, 10 Sep 2021 09:55:42 +0700 Subject: [PATCH] Prevent unnecessary "operation failed" error Minor paper cut, when restoring I keep getting an error: `ERROR 1396 (HY000) at line 1: Operation DROP USER failed for 'koha_library'@'%'` This is already implemented in `koha-remove` (https://github.com/Koha-Community/Koha/blob/a5a3a330cfc7c7d6c35db13326745dabf8fe0df3/debian/scripts/koha-remove#L69-70) so I'm attempting to add it to `koha-restore` too. --- debian/scripts/koha-restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/koha-restore b/debian/scripts/koha-restore index e8ec053ee07..b00ee85b321 100755 --- a/debian/scripts/koha-restore +++ b/debian/scripts/koha-restore @@ -73,7 +73,7 @@ mysqluser="koha_$name" mysqlpwd="$( xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml )" zcat "$sqldump" | mysql --defaults-extra-file=/etc/mysql/koha-common.cnf mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <