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

(-)a/debian/scripts/koha-dump (+1 lines)
Lines 63-68 dump_instance() Link Here
63
63
64
    # Dump database.
64
    # Dump database.
65
    mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )"
65
    mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )"
66
    mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )"
66
    mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )"
67
    mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )"
67
    mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )"
68
    mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )"
68
    mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )"
69
    mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )"
(-)a/debian/scripts/koha-mysql (-1 / +2 lines)
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
(-)a/debian/scripts/koha-mysqlcheck (-2 / +2 lines)
Lines 44-51 kohaconfig="/etc/koha/sites/$name/koha-conf.xml" Link Here
44
44
45
mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )"
45
mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )"
46
mysqldb="$(   xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )"
46
mysqldb="$(   xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )"
47
mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port'     $kohaconfig )"
47
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user'     $kohaconfig )"
48
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user'     $kohaconfig )"
48
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass'     $kohaconfig )"
49
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass'     $kohaconfig )"
49
50
50
mysqlcheck --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \
51
mysqlcheck --host="$mysqlhost" --port="$mysqlport" --user="$mysqluser" --password="$mysqlpass" \
51
    $args "$mysqldb"
52
    $args "$mysqldb"
52
- 

Return to bug 23141