Merge branch 'master' into mg/update/filldb-renamed-for-zammad-5

This commit is contained in:
André Bauer 2021-10-05 22:00:17 +02:00 committed by GitHub
commit 7fb159ef21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,8 +71,9 @@ if [ "$1" = 'zammad-init' ]; then
bundle exec rake db:seed
# create autowizard.json on first install
if [ -n "${AUTOWIZARD_JSON}" ]; then
echo "${AUTOWIZARD_JSON}" | base64 -d > auto_wizard.json
if base64 -d <<< ${AUTOWIZARD_JSON} &>> /dev/null; then
echo "Saving autowizard json payload..."
base64 -d <<< "${AUTOWIZARD_JSON}" > auto_wizard.json
fi
else
bundle exec rails r "Cache.clear"