Bugzilla – Attachment 113606 Details for
Bug 23141
The Debian scripts do not use the MySQL port number
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23141: Add support for configuring database port in koha-dump, koha-mysql and koha-mysqlcheck
Bug-23141-Add-support-for-configuring-database-por.patch (text/plain), 2.69 KB, created by
Victor Grousset/tuxayo
on 2020-11-13 14:23:42 UTC
(
hide
)
Description:
Bug 23141: Add support for configuring database port in koha-dump, koha-mysql and koha-mysqlcheck
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-11-13 14:23:42 UTC
Size:
2.69 KB
patch
obsolete
>From 0b27e841bf4101236bc8fb2c6f35416fa1cf878b Mon Sep 17 00:00:00 2001 >From: Andreas Jonsson <andreas.jonsson@kreablo.se> >Date: Fri, 29 Mar 2019 16:43:01 +0100 >Subject: [PATCH] Bug 23141: Add support for configuring database port in > koha-dump, koha-mysql and koha-mysqlcheck > >--- > debian/scripts/koha-dump | 1 + > debian/scripts/koha-mysql | 3 ++- > debian/scripts/koha-mysqlcheck | 3 ++- > 3 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/debian/scripts/koha-dump b/debian/scripts/koha-dump >index 7278a811e8..3c80131bf7 100755 >--- a/debian/scripts/koha-dump >+++ b/debian/scripts/koha-dump >@@ -63,6 +63,7 @@ dump_instance() > > # Dump database. > mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" >+ mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )" > mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" > mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" > mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" >diff --git a/debian/scripts/koha-mysql b/debian/scripts/koha-mysql >index 4a09e51c77..51ce44a8cb 100755 >--- a/debian/scripts/koha-mysql >+++ b/debian/scripts/koha-mysql >@@ -51,10 +51,11 @@ shift # remove instance name from argument list. > kohaconfig="/etc/koha/sites/$name/koha-conf.xml" > > mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" >+mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )" > mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" > mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" > mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" > >-mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \ >+mysql --host="$mysqlhost" --port="$mysqlport" --user="$mysqluser" --password="$mysqlpass" \ > "$mysqldb" "${@}" > >diff --git a/debian/scripts/koha-mysqlcheck b/debian/scripts/koha-mysqlcheck >index d3b8363526..8da15927d0 100755 >--- a/debian/scripts/koha-mysqlcheck >+++ b/debian/scripts/koha-mysqlcheck >@@ -44,8 +44,9 @@ kohaconfig="/etc/koha/sites/$name/koha-conf.xml" > > mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" > mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" >+mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )" > mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" > mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" > >-mysqlcheck --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \ >+mysqlcheck --host="$mysqlhost" --port="$mysqlport" --user="$mysqluser" --password="$mysqlpass" \ > $args "$mysqldb" >-- >2.29.2
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 23141
:
90687
|
90688
|
90689
|
91291
|
91292
|
91300
|
91408
|
105895
|
105896
|
105897
|
105898
|
105899
|
113605
| 113606 |
113607
|
113608
|
113609