From 1b1721e12915c79445f9202171bb4a4d532cfcef Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 7 Mar 2024 14:41:40 +0800 Subject: [PATCH] Optimizing Docker Log Output Detection --- scripts/check-all.sh | 4 +++- scripts/start-all.sh | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/check-all.sh b/scripts/check-all.sh index c4ff78d6a..8435808de 100755 --- a/scripts/check-all.sh +++ b/scripts/check-all.sh @@ -27,9 +27,11 @@ OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. source "${OPENIM_ROOT}/scripts/install/common.sh" if openim::util::is_running_in_container; then + echo "container!!!!11111111111" exec > ${DOCKER_LOG_FILE} 2>&1 + else - echo "host!!!!" + echo "host!!!!11111111111" fi diff --git a/scripts/start-all.sh b/scripts/start-all.sh index 009125466..020b3ba3d 100755 --- a/scripts/start-all.sh +++ b/scripts/start-all.sh @@ -63,11 +63,12 @@ function execute_start_scripts() { if openim::util::is_running_in_container; then + echo "container!!!!11111111111" exec > ${DOCKER_LOG_FILE} 2>&1 -else - echo "host!!!!" -fi +else + echo "host!!!!11111111111" +fi openim::golang::check_openim_binaries