Bugzilla – Attachment 41366 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.23 KB, created by
Jonathan Druart
on 2015-08-05 08:10:22 UTC
(
hide
)
Description:
Bug 12372: koha-mysql: process any mysql args
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-08-05 08:10:22 UTC
Size:
1.23 KB
patch
obsolete
>From be83b7596971d8205b46d11a330b324aad6ab742 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> >Signed-off-by: Liz Rea <liz@catalyst.net.nz> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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" "${@}" > >-- >2.1.0
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