added autowizard.json creation
This commit is contained in:
parent
ede858202c
commit
5b495e81ca
@ -84,12 +84,16 @@ if [ "$1" = 'zammad-init' ]; then
|
|||||||
sleep 5
|
sleep 5
|
||||||
done
|
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
|
curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices
|
||||||
echo "rebuilding es searchindex..."
|
echo "rebuilding es searchindex..."
|
||||||
bundle exec rake searchindex:rebuild
|
bundle exec rake searchindex:rebuild
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${AUTOWIZARD_JSON}" ]; then
|
||||||
|
echo "${AUTOWIZARD_JSON}" | base64 -d > auto_wizard.json
|
||||||
|
fi
|
||||||
|
|
||||||
# chown everything to zammad user
|
# chown everything to zammad user
|
||||||
chown -R ${ZAMMAD_USER}:${ZAMMAD_USER} ${ZAMMAD_DIR}
|
chown -R ${ZAMMAD_USER}:${ZAMMAD_USER} ${ZAMMAD_DIR}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user