update fix
This commit is contained in:
+12
-3
@@ -2678,6 +2678,16 @@ BRANCH_MANAGEMENT_MENU() {
|
||||
done
|
||||
}
|
||||
|
||||
TAPM_INSTALL_MENU_UPDATE() {
|
||||
if ! /opt/idssys/ta-proxmenu/run.sh update; then
|
||||
printf '\nUpdate reported failures; review the node results above. TAPM will reload the locally installed version.\n'
|
||||
ENTER2CONTINUE
|
||||
fi
|
||||
# A remote failure can coexist with a successful local update. Reload the
|
||||
# full menu, including functions and defaults, regardless of cluster status.
|
||||
exec /opt/idssys/ta-proxmenu/run.sh
|
||||
}
|
||||
|
||||
UTILITIES_MENU() {
|
||||
local -a labels
|
||||
local -a values=("install_update" "check_update" "branches" "about")
|
||||
@@ -2727,9 +2737,8 @@ UTILITIES_MENU() {
|
||||
echo -en "\n${idsCL[LightCyan]}Install the update for the current branch (y/N)?${idsCL[Default]} "
|
||||
read -r -n 1 choice
|
||||
echo
|
||||
if [[ "$choice" =~ ^[Yy]$ ]] &&
|
||||
/opt/idssys/ta-proxmenu/run.sh update; then
|
||||
exec /opt/idssys/ta-proxmenu/run.sh
|
||||
if [[ "$choice" =~ ^[Yy]$ ]]; then
|
||||
TAPM_INSTALL_MENU_UPDATE
|
||||
fi
|
||||
ENTER2CONTINUE
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user