Bugzilla – Attachment 63501 Details for
Bug 18564
koha-common.cnf parsing is too restrictive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch changing the awk script
patch.diff (text/plain), 952 bytes, created by
Eric Vantillard
on 2017-05-17 15:18:42 UTC
(
hide
)
Description:
patch changing the awk script
Filename:
MIME Type:
Creator:
Eric Vantillard
Created:
2017-05-17 15:18:42 UTC
Size:
952 bytes
patch
obsolete
>From 410037b4e18ce5200bc045030dc85e3689ea0624 Mon Sep 17 00:00:00 2001 >From: Eric Vantillard <eric.vantillard@evaxion.fr> >Date: Tue, 9 May 2017 23:10:21 +0200 >Subject: [PATCH] patch for bug 18564 > >see https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18564 >--- > debian/scripts/koha-create | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create >index b21e472..4f6bede 100755 >--- a/debian/scripts/koha-create >+++ b/debian/scripts/koha-create >@@ -123,9 +123,10 @@ generate_config_file() { > > getmysqlhost() { > awk ' >- /^\[/ { inclient = 0 } >- /^\[client\]/ { inclient = 1 } >- inclient && /^ *host *=/ { print $3 }' \ >+ BEGIN { FS="=" } >+ $1 ~/\[/ { inclient=0 } >+ $1 ~/\[client\]/ { inclient=1; next } >+ inclient==1 && $1 ~/host/ { gsub(/ /, "", $2); print $2 }' \ > /etc/mysql/koha-common.cnf > } > >-- >2.10.1 >
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 18564
:
63501
|
64557
|
67371
|
68315