mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
Script Refactoring
This commit is contained in:
parent
4a6fd62611
commit
1f08404403
@ -288,6 +288,9 @@ function openim::log::print_red_no_time_stamp() {
|
||||
echo -e "\033[0;31m$1\033[0m"
|
||||
}
|
||||
|
||||
function openim::log::print_green_no_time_stamp() {
|
||||
echo -e "\033[0;32m$1\033[0m"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -14,16 +14,14 @@ source "$OPENIM_SCRIPTS/bricks.sh"
|
||||
|
||||
result=$(start_tools)
|
||||
ret_val=$?
|
||||
|
||||
|
||||
if [ $ret_val -ne 0 ]; then
|
||||
echo "tools start failed, abort start"
|
||||
echo "$result"
|
||||
openim::log::print_red "Some tools failed to start, details are as follows, abort start"
|
||||
openim::log::print_red_no_time_stamp "$result"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "all tools ok"
|
||||
echo "$result"
|
||||
openim::log::print_green "All tools executed successfully, details are as follows:"
|
||||
openim::log::print_green_no_time_stamp "$result"
|
||||
|
||||
kill_exist_binaries
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user