mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
Optimizing Docker Log Output Detection
This commit is contained in:
parent
1b1721e129
commit
04bddeb3b3
@ -26,12 +26,8 @@
|
||||
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||
source "${OPENIM_ROOT}/scripts/install/common.sh"
|
||||
|
||||
if openim::util::is_running_in_container; then
|
||||
echo "container!!!!11111111111"
|
||||
if is_running_in_container; then
|
||||
exec > ${DOCKER_LOG_FILE} 2>&1
|
||||
|
||||
else
|
||||
echo "host!!!!11111111111"
|
||||
fi
|
||||
|
||||
|
||||
@ -79,7 +75,7 @@ if grep -qE 'docker|kubepods' /proc/1/cgroup || [ -f /.dockerenv ]; then
|
||||
openim::color::echo ${COLOR_CYAN} "Environment in the interior of the container"
|
||||
else
|
||||
openim::color::echo ${COLOR_CYAN} "The environment is outside the container"
|
||||
openim::util::check_ports ${OPENIM_DEPENDENCY_PORT_LISTARIES[@]} || return 0
|
||||
openim::util::check_ports ${OPENIM_DEPENDENCY_PORT_LISTARIES[@]}
|
||||
fi
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
||||
@ -62,12 +62,8 @@ function execute_start_scripts() {
|
||||
|
||||
|
||||
|
||||
if openim::util::is_running_in_container; then
|
||||
echo "container!!!!11111111111"
|
||||
if is_running_in_container; then
|
||||
exec > ${DOCKER_LOG_FILE} 2>&1
|
||||
|
||||
else
|
||||
echo "host!!!!11111111111"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user