Sync new translations on package update too.
This commit is contained in:
parent
ba12920a01
commit
878fdb64a8
|
@ -193,6 +193,12 @@ function update_database () {
|
||||||
zammad run rake db:migrate
|
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 () {
|
function create_webserver_config () {
|
||||||
if [ "${OS}" == "DEBIAN" ]; then
|
if [ "${OS}" == "DEBIAN" ]; then
|
||||||
if [ ! -f "${WEBSERVER_CONF}" ]; then
|
if [ ! -f "${WEBSERVER_CONF}" ]; then
|
||||||
|
@ -234,6 +240,8 @@ function elasticsearch_searchindex_rebuild () {
|
||||||
function update_or_install () {
|
function update_or_install () {
|
||||||
if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then
|
if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then
|
||||||
update_database
|
update_database
|
||||||
|
|
||||||
|
update_translations
|
||||||
else
|
else
|
||||||
create_database_password
|
create_database_password
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue