Signed-off-by: hanzhixiao <709674996@qq.com>
pull/828/head
hanzhixiao 2 years ago
parent 444af3d6ad
commit 176cae0a6d

@ -76,8 +76,19 @@ need_to_start_server_shell=(
msg_gateway_start.sh msg_gateway_start.sh
start_cron.sh start_cron.sh
) )
chmod +x $i
start_component_check.sh component_check=start_component_check.sh
echo -e ""
chmod +x $component_check
echo -e "=========> ${BACKGROUND_GREEN}Executing ${component_check}...${COLOR_SUFFIX}"
echo -e ""
./start_component_check.sh
if [ $? -ne 0 ]; then
# Print error message and exit
echo "${BOLD_PREFIX}${RED_PREFIX}Error executing ${component_check}. Exiting...${COLOR_SUFFIX}"
exit -1
fi
# Loop through the script names and execute them # Loop through the script names and execute them
for i in ${need_to_start_server_shell[*]}; do for i in ${need_to_start_server_shell[*]}; do

Loading…
Cancel
Save