Bugzilla – Attachment 40526 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]
Standardized argument parsing for koha-mysql.
Standardized-argument-parsing-for-koha-mysql.patch (text/plain), 1.07 KB, created by
Barton Chittenden
on 2015-06-23 14:05:13 UTC
(
hide
)
Description:
Standardized argument parsing for koha-mysql.
Filename:
MIME Type:
Creator:
Barton Chittenden
Created:
2015-06-23 14:05:13 UTC
Size:
1.07 KB
patch
obsolete
>From b16a5a76beda01cf0ec522c3dac7f9f079c38cf5 Mon Sep 17 00:00:00 2001 >From: Barton Chittenden <barton@bywatersolutions.com> >Date: Tue, 23 Jun 2015 07:02:10 -0700 >Subject: [PATCH] Standardized argument parsing for koha-mysql. > >http://bugs.koha-community.org/show_bug.cgi?id=12372 >--- > debian/scripts/koha-mysql | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-mysql b/debian/scripts/koha-mysql >index baf2d5c..4a09e51 100755 >--- a/debian/scripts/koha-mysql >+++ b/debian/scripts/koha-mysql >@@ -29,8 +29,24 @@ else > exit 1 > fi > >-is_instance "$1" || die "Usage: $0 instancename" >+usage() >+{ >+ local scriptname=$0 >+ cat <<EOF >+Run mysql in the context of a given Koha instance. >+ >+Usage: $scriptname instancename [ optional mysql arguments ] >+ >+EOF >+} >+ >+# Parse command line. >+[ $# -ge 1 ] || ( usage ; die "Missing instance name..." ) >+ > name="$1" >+ >+is_instance "$name" || ( usage; die "Unknown instance '$name'" ) >+ > shift # remove instance name from argument list. > kohaconfig="/etc/koha/sites/$name/koha-conf.xml" > >-- >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