View | Details | Raw Unified | Return to bug 18564
Collapse All | Expand All

(-)a/debian/scripts/koha-create (-4 / +4 lines)
Lines 124-132 generate_config_file() { Link Here
124
124
125
getmysqlhost() {
125
getmysqlhost() {
126
    awk '
126
    awk '
127
        /^\[/ { inclient = 0 }
127
        BEGIN { FS="=" }
128
        /^\[client\]/ { inclient = 1 }
128
        $1 ~/\[/ { inclient=0 }
129
        inclient && /^ *host *=/ { print $3 }' \
129
        $1 ~/\[client\]/ { inclient=1; next }
130
        inclient==1 && $1 ~/host/ { gsub(/ /, "", $2); print $2 }' \
130
        /etc/mysql/koha-common.cnf
131
        /etc/mysql/koha-common.cnf
131
}
132
}
132
133
133
- 

Return to bug 18564