Fixes #3324 - Migrating to another host causes Login to fail.

This commit is contained in:
Thorsten Eckel 2020-12-03 10:13:04 +01:00
parent ca49afe270
commit 24d15d7bd4

View file

@ -199,6 +199,14 @@ function restore_zammad () {
# See #3160 for the reasons of this :>
restore_files
fi
# Ensure all data is loaded from the restored database and not the cache of the previous system state
echo "# Clearing Cache ..."
if command -v zammad > /dev/null; then
zammad run rails r "Cache.clear"
else
${ZAMMAD_DIR}/bin/rails r "Cache.clear"
fi
}
function restore_files () {