From 410037b4e18ce5200bc045030dc85e3689ea0624 Mon Sep 17 00:00:00 2001 From: Eric Vantillard 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