update
This commit is contained in:
+11
-1
@@ -104,10 +104,12 @@ INSTALL_CLUSTER_UPDATES() {
|
||||
continue
|
||||
fi
|
||||
if [[ "$status" != "online" ]]; then
|
||||
printf '\n'
|
||||
echo -e "${idsCL[LightYellow]}Skipping ${node}: node status is ${status}.${idsCL[Default]}"
|
||||
cluster_failed=1
|
||||
continue
|
||||
fi
|
||||
printf '\n'
|
||||
echo -e "${idsCL[LightCyan]}Updating remote node ${node}...${idsCL[Default]}"
|
||||
if TAPM_UPDATE_REMOTE_NODE "$node"; then
|
||||
echo -e "${idsCL[Green]}Remote node ${node} is updated.${idsCL[Default]}"
|
||||
@@ -117,8 +119,16 @@ INSTALL_CLUSTER_UPDATES() {
|
||||
fi
|
||||
done
|
||||
|
||||
printf '\n'
|
||||
echo -e "${idsCL[LightCyan]}Updating local node ${local_node}...${idsCL[Default]}"
|
||||
INSTALL_LOCAL_UPDATES || cluster_failed=1
|
||||
if INSTALL_LOCAL_UPDATES; then
|
||||
echo -e "${idsCL[Green]}Local node ${local_node} is updated.${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[Red]}Local node ${local_node} failed to update.${idsCL[Default]}"
|
||||
cluster_failed=1
|
||||
fi
|
||||
|
||||
printf '\n'
|
||||
if (( cluster_failed == 0 )); then
|
||||
echo -e "${idsCL[Green]}TA-ProxMenu is updated on all ${#cluster_nodes[@]} cluster node(s).${idsCL[Default]}"
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user