From cb23b738b7857dc540a2d01b65c37835d30c24ca Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751@qq.com> Date: Wed, 3 Jan 2024 15:29:06 +0800 Subject: [PATCH] Update install-im-server.sh --- scripts/install-im-server.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install-im-server.sh b/scripts/install-im-server.sh index 474fd5db7..a21ae134d 100755 --- a/scripts/install-im-server.sh +++ b/scripts/install-im-server.sh @@ -47,16 +47,15 @@ curl https://raw.githubusercontent.com/openimsdk/openim-docker/main/docker-compo ${DOCKER_COMPOSE_COMMAND} up -d # Wait for a short period to allow containers to initialize -sleep 10 +sleep 30 # Check the status of the containers if ! ${DOCKER_COMPOSE_COMMAND} ps | grep -q 'Up'; then echo "Error: One or more docker containers failed to start." ${DOCKER_COMPOSE_COMMAND} logs - exit 1 fi -sleep 50 # Keep the original 60-second wait, adjusted for the 10-second check above +sleep 30 # Keep the original 60-second wait, adjusted for the 10-second check above ${DOCKER_COMPOSE_COMMAND} logs openim-server ${DOCKER_COMPOSE_COMMAND} ps