Signed-off-by: hanzhixiao <709674996@qq.com>
This commit is contained in:
hanzhixiao
2023-08-10 10:50:05 +08:00
parent d37796a58f
commit cab30e7311
8 changed files with 356 additions and 5 deletions
+13
View File
@@ -77,6 +77,19 @@ need_to_start_server_shell=(
start_cron.sh
)
component_check=start_component_check.sh
echo -e ""
chmod +x $component_check
echo -e "=========> ${BACKGROUND_GREEN}Executing ${component_check}...${COLOR_SUFFIX}"
echo -e ""
./$component_check
if [ $? -ne 0 ]; then
# Print error message and exit
echo -e "${BOLD_PREFIX}${RED_PREFIX}Error executing ${component_check}. Exiting...${COLOR_SUFFIX}"
exit -1
fi
# Loop through the script names and execute them
for i in ${need_to_start_server_shell[*]}; do
chmod +x $i