Fix error "base64: invalid input" causing init container crash

Fixes zammad/zammad-docker-compose#231
This commit is contained in:
Arnaud Veron 2021-08-20 09:19:35 +02:00
parent db7ca4b92d
commit 88f62a1271

View File

@ -74,7 +74,8 @@ if [ "$1" = 'zammad-init' ]; then
bundle exec rake db:seed
# create autowizard.json on first install
if [ -n "${AUTOWIZARD_JSON}" ]; then
if [ $((${#AUTOWIZARD_JSON} % 4)) -eq 0 ]; then
echo "Saving autowizard json payload..."
echo "${AUTOWIZARD_JSON}" | base64 -d > auto_wizard.json
fi
else