From dea191ff9137feb8abccfa2da1781388f78e1049 Mon Sep 17 00:00:00 2001 From: matteo-cristino Date: Tue, 30 Jan 2024 09:43:38 +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..49f1567 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