Fix error "base64: invalid input" causing init container crash
Fixes zammad/zammad-docker-compose#231
This commit is contained in:
parent
db7ca4b92d
commit
88f62a1271
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user