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

(-)a/debian/scripts/koha-mysql (-4 / +10 lines)
Lines 17-24 Link Here
17
# You should have received a copy of the GNU General Public License
17
# You should have received a copy of the GNU General Public License
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
20
set -e
21
22
umask 0077
20
umask 0077
23
21
24
# include helper functions
22
# include helper functions
Lines 55-60 mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" Link Here
55
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )"
53
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )"
56
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )"
54
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )"
57
55
58
mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \
56
mysqltz="$( xmlstarlet sel -t -v 'yazgfs/config/timezone' $kohaconfig )"
57
if [ $? -eq 0 ]
58
then
59
    echo "Using time zone $mysqltz"
60
    mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" --init-command="SET time_zone = '$mysqltz'" \
61
    "$mysqldb"  "${@}"
62
else
63
    echo "No time zone set for Koha, using database time zone."
64
    mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass"  \
59
    "$mysqldb"  "${@}"
65
    "$mysqldb"  "${@}"
66
fi
60
67
61
- 

Return to bug 30468