2020-02-26 23:33:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# run zammad tests
|
|
|
|
#
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
docker-compose logs --timestamps --follow &
|
|
|
|
|
|
|
|
until (curl -I --silent --fail localhost | grep -iq "HTTP/1.1 200 OK"); do
|
|
|
|
echo "wait for zammad to be ready..."
|
|
|
|
sleep 15
|
|
|
|
done
|
|
|
|
|
2020-02-27 11:42:06 +00:00
|
|
|
sleep 30
|
2020-02-26 23:33:46 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Success - Zammad is up :)"
|
|
|
|
echo
|
2020-02-27 23:38:52 +00:00
|
|
|
echo "Execute autowizard..."
|
|
|
|
echo
|
|
|
|
|
|
|
|
curl -I --silent --fail --show-error "http://localhost/#getting_started/auto_wizard/docker_compose_token" > /dev/null
|
|
|
|
|
|
|
|
echo
|
2020-03-07 12:21:46 +00:00
|
|
|
echo "Autowizard executed successful :)"
|
2020-02-27 23:38:52 +00:00
|
|
|
echo
|
|
|
|
|