6 AUTOMATIC_TRANSLATIONS_UPDATE="no"
8 . /usr/share/debconf/confmodule
10 # Read configuration variable file if it is present
11 if [ -r /etc/koha/koha-common.conf ]; then
12 . /etc/koha/koha-common.conf
15 conf=/etc/mysql/koha-common.cnf
16 if [ ! -e "$conf" ] && [ ! -L "$conf" ]
18 ln -s debian.cnf "$conf"
23 koha-upgrade-schema $(koha-list)
25 if [ "$AUTOMATIC_TRANSLATIONS_UPDATE" = "yes" ]; then
26 for lang in $(koha-translate --list | grep -v -x "en"); do
27 if koha-translate --update $lang; then
28 echo "Updated the $lang translations."
31 ERROR: an error was found when updating '$lang' translations. Please manually
32 run 'koha-translate --update $lang'. Run man koha-translate for more options.
37 # no auto-update, check update needed and warn if needed
38 if koha-translate --list | grep -v -q -x "en"; then
39 # translations installed, update needed
41 Warning: template translations are not set to be automatically updated.
42 Please manually run 'koha-translate --update lang_code' to update them.
44 You can run 'koha-translate --list' to get a list of the installed translations codes.