Lines 51-60
shift # remove instance name from argument list.
Link Here
|
51 |
kohaconfig="/etc/koha/sites/$name/koha-conf.xml" |
51 |
kohaconfig="/etc/koha/sites/$name/koha-conf.xml" |
52 |
|
52 |
|
53 |
mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" |
53 |
mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" |
|
|
54 |
mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )" |
54 |
mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" |
55 |
mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" |
55 |
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" |
56 |
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" |
56 |
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" |
57 |
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" |
57 |
|
58 |
|
58 |
mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \ |
59 |
mysql --host="$mysqlhost" --port="$mysqlport" --user="$mysqluser" --password="$mysqlpass" \ |
59 |
"$mysqldb" "${@}" |
60 |
"$mysqldb" "${@}" |
60 |
|
61 |
|