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