From 878fdb64a86a0d160ec472a0c93cba261a29e893 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 25 Oct 2017 12:36:07 +0200 Subject: [PATCH] Sync new translations on package update too. --- contrib/packager.io/functions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index 1aa1bf3c6..74298508d 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -193,6 +193,12 @@ function update_database () { zammad run rake db:migrate } +function update_translations () { + echo "# Updating translations..." + zammad run rails r 'Locale.sync' + zammad run rails r 'Translation.sync' +} + function create_webserver_config () { if [ "${OS}" == "DEBIAN" ]; then if [ ! -f "${WEBSERVER_CONF}" ]; then @@ -234,6 +240,8 @@ function elasticsearch_searchindex_rebuild () { function update_or_install () { if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then update_database + + update_translations else create_database_password