This commit is contained in:
David Schroeder
2026-07-29 17:22:18 -05:00
parent 8bd60e2f52
commit c0bbfb3447
4 changed files with 27 additions and 3 deletions
+11 -1
View File
@@ -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