[Koha-bugs] [Bug 18564] kola-common.cnf parsing is too restrictive

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 9 22:04:10 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18564

--- Comment #2 from Eric Vantillard <eric.vantillard at evaxion.fr> ---
maybe something like that

awk '
BEGIN {
        FS="="
}
$1 ~/\[/ {
        inclient=0
}
$1 ~/\[client\]/ {
        inclient=1
        next
}
inclient==1 && $1 ~/host/ {
        print $2
}
' /etc/mysql/koha-common.cnf

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list