added autowizard.json creation

This commit is contained in:
André Bauer 2019-02-01 19:52:04 +01:00
parent ede858202c
commit 5b495e81ca

View File

@ -84,12 +84,16 @@ if [ "$1" = 'zammad-init' ]; then
sleep 5
done
if [ -z "$(curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices |grep zammad)" ]; then
if [ -z "$(curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep zammad)" ]; then
curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices
echo "rebuilding es searchindex..."
bundle exec rake searchindex:rebuild
fi
if [ -n "${AUTOWIZARD_JSON}" ]; then
echo "${AUTOWIZARD_JSON}" | base64 -d > auto_wizard.json
fi
# chown everything to zammad user
chown -R ${ZAMMAD_USER}:${ZAMMAD_USER} ${ZAMMAD_DIR}