From 4a19d0dd290f74a59d8547d1b3f683a48eb6238e Mon Sep 17 00:00:00 2001 From: matteo-cristino Date: Tue, 30 Jan 2024 09:27:07 +0100 Subject: [PATCH] fix: wait for restroom to be up before ending --- start-restroom.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start-restroom.sh b/start-restroom.sh index 5f8cd49..cae4497 100755 --- a/start-restroom.sh +++ b/start-restroom.sh @@ -21,4 +21,7 @@ if [[ "$FILES" != "" ]]; then fi docker run --name $RESTROOM_CONTAINER_NAME --publish 3000:3000 $FILES_PARAMS $LOGGER_PARAMS -v "$CONTRACTS":"/app/contracts" --detach ghcr.io/dyne/restroom-mw:latest -sleep 7 + +while [[ ! $(( echo -e '\x1dclose\x0d' | telnet localhost 3000 >/dev/null 2>/dev/null )) ]]; do + sleep 1 +done \ No newline at end of file