diff --git a/wait-for-synapse.sh b/wait-for-synapse.sh index afb3a79..1c07041 100755 --- a/wait-for-synapse.sh +++ b/wait-for-synapse.sh @@ -17,7 +17,7 @@ host="$1" # This is done for `exec "$@"` below to work correctly shift -until [ "200" == $(curl -s -o /dev/null --head -w "%{http_code}" https://${host}/_matrix/client/versions) ]; do +until [ "200" -eq $(curl -s -o /dev/null --head -w "%{http_code}" https://${host}/_matrix/client/versions) ]; do >&2 echo "synapse is unavailable - sleeping" sleep 3 done