Fixes #3808 - Regression of #3797 causes installation of new instances from package to fail.

This commit is contained in:
Thorsten Eckel 2021-10-14 08:31:04 +02:00
parent 8762f96810
commit d17e3c5b55

View file

@ -273,10 +273,11 @@ function elasticsearch_searchindex_rebuild () {
function update_or_install () { function update_or_install () {
if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then
echo "# Clear cache..." echo "# Clear cache..."
zammad run rails r Cache.clear zammad run rails r Cache.clear
if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then
update_database update_database
update_translations update_translations