Added zpm addon scripts deployment

* once a zpm package is installed through auto_install, it populates ${ZAMMAD_DIR}/db/addon/<package> with rb scripts
* this commit now triggers package migration, and rebuilds assets
This commit is contained in:
Arnaud Veron 2021-08-18 15:17:20 +02:00
parent db7ca4b92d
commit c8f7c5a2e0

View File

@ -81,6 +81,13 @@ if [ "$1" = 'zammad-init' ]; then
bundle exec rake db:migrate
fi
# ensure package DB and asset changes are applied
if [ -d "${ZAMMAD_DIR}/auto_install/" ]; then
echo "Performing package migrations and rebuilding assets..."
bundle exec rake zammad:package:migrate
bundle exec rake assets:precompile
fi
# es config
echo "changing settings..."
if [ "${ELASTICSEARCH_ENABLED}" == "false" ]; then