mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 10:18:45 +08:00
Optimizing Docker Log Output Detection
This commit is contained in:
parent
6fed7607d5
commit
1b1721e129
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user