From 0fffa0c43b48df490bf29245c03c8f85199f12b9 Mon Sep 17 00:00:00 2001 From: skiffer-git <72860476+skiffer-git@users.noreply.github.com> Date: Sun, 2 Jul 2023 22:13:10 +0800 Subject: [PATCH] Update install_im_server.sh --- install_im_server.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install_im_server.sh b/install_im_server.sh index edf4b8331..fe219c967 100644 --- a/install_im_server.sh +++ b/install_im_server.sh @@ -14,6 +14,14 @@ chmod +x *.sh ; ./init_pwd.sh ./env_check.sh; cd .. ; -docker-compose up -d; + +if command -v docker-compose &> /dev/null +then + docker-compose up -d ; +else + docker compose up -d ; +fi + + cd scripts ; ./docker_check_service.sh