5b12c69f27
If the new version of Koha requires a newer version of the database schema, the Koha instances will work immediately after the package is upgraded, rather than after the sysadmin has run koha-upgrade-schema manually. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
13 lines
175 B
Bash
13 lines
175 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
conf=/etc/mysql/koha-common.cnf
|
|
if [ ! -e "$conf" ] && [ ! -L "$conf" ]
|
|
then
|
|
ln -s debian.cnf "$conf"
|
|
fi
|
|
|
|
#DEBHELPER#
|
|
|
|
koha-upgrade-schema $(koha-list)
|