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

(-)a/debian/scripts/koha-mysql (-2 / +10 lines)
Lines 55-60 mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" Link Here
55
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )"
55
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )"
56
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )"
56
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )"
57
57
58
mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \
58
mysqltz="$( xmlstarlet sel -t -v 'yazgfs/config/timezone' $kohaconfig )"
59
if [ $? -eq 0 ]
60
then
61
    echo "Using time zone $mysqltz"
62
    mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" --init-command="SET time_zone = '$mysqltz'" \
59
    "$mysqldb"  "${@}"
63
    "$mysqldb"  "${@}"
64
else
65
    echo "No time zone set for Koha, using database time zone."
66
    mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass"  \
67
    "$mysqldb"  "${@}"
68
fi
60
69
61
- 

Return to bug 30468