Bugzilla – Attachment 40379 Details for
Bug 12372
Make koha-mysql handle arbitrary mysql arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12372: koha-mysql: process any mysql args
Bug-12372-koha-mysql-process-any-mysql-args.patch (text/plain), 1.12 KB, created by
Ian Bays
on 2015-06-19 14:05:46 UTC
(
hide
)
Description:
Bug 12372: koha-mysql: process any mysql args
Filename:
MIME Type:
Creator:
Ian Bays
Created:
2015-06-19 14:05:46 UTC
Size:
1.12 KB
patch
obsolete
>From bbc2605a71954b5281c5b62ebd475d84d0a4433f Mon Sep 17 00:00:00 2001 >From: Barton Chittenden <barton@bywatersolutions.com> >Date: Mon, 1 Jun 2015 15:29:14 -0700 >Subject: [PATCH] Bug 12372: koha-mysql: process any mysql args > >Signed-off-by: Ian Bays <ian.bays@ptfs-europe.com> >--- > debian/scripts/koha-mysql | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/debian/scripts/koha-mysql b/debian/scripts/koha-mysql >index d1f9576..baf2d5c 100755 >--- a/debian/scripts/koha-mysql >+++ b/debian/scripts/koha-mysql >@@ -29,8 +29,9 @@ else > exit 1 > fi > >-[ "$#" = 1 ] || die "Usage: $0 instancename" >+is_instance "$1" || die "Usage: $0 instancename" > name="$1" >+shift # remove instance name from argument list. > kohaconfig="/etc/koha/sites/$name/koha-conf.xml" > > mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" >@@ -39,5 +40,5 @@ 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" \ >- "$mysqldb" >+ "$mysqldb" "${@}" > >-- >1.7.10.4
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 12372
:
40322
|
40323
|
40379
|
40526
|
40527
|
41243
|
41244
|
41245
|
41246
|
41247
|
41366
|
41367
|
41368