mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
Script Refactoring
This commit is contained in:
parent
f7de02cd98
commit
4436d388b3
@ -32,7 +32,7 @@ source "$OPENIM_SCRIPTS/bricks.sh"
|
||||
result=$(check_binaries_running)
|
||||
ret_val=$?
|
||||
if [ $ret_val -eq 0 ]; then
|
||||
echo "All services are running normally."
|
||||
openim::log::print_green "All services are running normally."
|
||||
else
|
||||
openim::log::print_red "Some services are not running as expected. Details are as follows:"
|
||||
openim::log::print_red "$result"
|
||||
|
||||
@ -273,6 +273,11 @@ function openim::log::print_green_two_line() {
|
||||
echo -e "\033[0;32m$1\033[0m"
|
||||
}
|
||||
|
||||
function openim::log::print_green() {
|
||||
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
||||
echo -e "[$current_time] \033[0;32m$1\033[0m"
|
||||
}
|
||||
|
||||
|
||||
function openim::log::print_red() {
|
||||
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user