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 | 5 +++-- 2 files changed, 6 insertions(+), 3 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,13 +63,14 @@ function execute_start_scripts() { if openim::util::is_running_in_container; then + echo "container!!!!11111111111" exec > ${DOCKER_LOG_FILE} 2>&1 + else - echo "host!!!!" + echo "host!!!!11111111111" fi - openim::golang::check_openim_binaries if [[ $? -ne 0 ]]; then openim::log::error "OpenIM binaries are not found. Please run 'make build' to build binaries."