Sync new translations on package update too.
This commit is contained in:
parent
ba12920a01
commit
878fdb64a8
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue