Update backup.sh

This commit is contained in:
André Bauer 2018-05-03 18:33:20 +02:00 committed by GitHub
parent d2cb86bd4b
commit 1915742379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,11 @@
set -e
: "${ZAMMAD_RAILSSERVER_HOST:=zammad-railsserver}"
: "${ZAMMAD_RAILSSERVER_HOST:=zammad-railsserver-host}"
: "${ZAMMAD_RAILSSERVER_PORT:=3000l}"
function check_railsserver_available {
until (echo > /dev/tcp/${ZAMMAD_RAILSSERVER_HOST}/3000) &> /dev/null; do
until (echo > /dev/tcp/${ZAMMAD_RAILSSERVER_HOST}/${ZAMMAD_RAILSSERVER_PORT}) &> /dev/null; do
echo "waiting for railsserver to be ready..."
sleep 60
done