Bugzilla – Attachment 89529 Details for
Bug 10517
koha-restore fails to create mysqluser@mysql_hostname so zebra update fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use "DROP USER IF EXISTS" and remove " || true"
file_10517.txt (text/plain), 770 bytes, created by
Rudolf Byker
on 2019-05-10 09:10:26 UTC
(
hide
)
Description:
Use "DROP USER IF EXISTS" and remove " || true"
Filename:
MIME Type:
Creator:
Rudolf Byker
Created:
2019-05-10 09:10:26 UTC
Size:
770 bytes
patch
obsolete
>diff --git a/koha-restore b/koha-restore.original >index 7c68d65..e8ec053 100755 >--- a/koha-restore >+++ b/koha-restore.original >@@ -72,8 +72,10 @@ mysqldb="koha_$name" > 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 <<eof >-DROP USER IF EXISTS '$mysqluser'; >+mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof || true >+DROP USER '$mysqluser'; >+eof >+mysql --defaults-extra-file=/etc/mysql/koha-common.cnf << eof || true > CREATE USER '$mysqluser' IDENTIFIED BY '$mysqlpwd'; > GRANT ALL PRIVILEGES ON $mysqldb.* TO '$mysqluser'; > FLUSH PRIVILEGES;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10517
:
19284
|
89529
|
96975
|
127865
|
133758
|
134353
|
134354