From 412931053069448675dcf1d4a35005619b65d386 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 13 Mar 2026 22:14:48 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- proxmenu-scripts.sh | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/defaults.inc b/defaults.inc index 6aa3000..0a5f33e 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.3.13-9' +VERS='2026.3.13-10' RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 701ec9e..866543a 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -254,8 +254,12 @@ MAINTENANCE_MODE(){ } MAIN_MENU() { + echo -en "${idsCL[LightCyan]}Pulling host info ... " CRES=$(pvesh get /cluster/resources) HAS=$(ha-manager status) + DPL=$(dpkg -l) + echo -e "${idsCL[Green]}Done${idsCL[Default]}" + while : do clear @@ -287,7 +291,7 @@ MAIN_MENU() { else echo -e "${idsCL[DarkGray]} [4] Glances is already installed${idsCL[Default]}" fi - if [ "$(dpkg -l | awk '/srvadmin-all/ {print }'|wc -l)" -eq 0 ]; then + if [ "$(echo ${DPL} | awk '/srvadmin-all/ {print }'|wc -l)" -eq 0 ]; then echo -e "${idsCL[White]} [${idsCL[LightYellow]}5${idsCL[Default]}] ${idsCL[White]}Install Dell OpenManage Server Administrator${idsCL[Default]}" else echo -e "${idsCL[DarkGray]} [5] Dell OMSA is already installed - ${idsCL[Cyan]}https://${RNIP}:1311" @@ -298,12 +302,12 @@ MAIN_MENU() { else echo -e "${idsCL[DarkGray]} [6] ConnectWise RMM Agent is already installed${idsCL[Default]}" fi - if [ "$(dpkg -l | awk '/cyberprotect/ {print }'|wc -l)" -eq 0 ]; then + if [ "$(echo ${DPL} | awk '/cyberprotect/ {print }'|wc -l)" -eq 0 ]; then echo -e "${idsCL[White]} [${idsCL[LightYellow]}7${idsCL[Default]}] ${idsCL[White]}Install Acronis Backup Agent${idsCL[Default]}" else echo -e "${idsCL[DarkGray]} [7] Acronis Backup is already installed${idsCL[Default]}" fi - if [ "$(dpkg -l | awk '/sentinelagent/ {print }'|wc -l)" -eq 0 ]; then + if [ "$(echo ${DPL} | awk '/sentinelagent/ {print }'|wc -l)" -eq 0 ]; then echo -e "${idsCL[White]} [${idsCL[LightYellow]}8${idsCL[Default]}] ${idsCL[White]}Install SentinelOne Agent${idsCL[Default]}" else echo -e "${idsCL[DarkGray]} [8] SentinelOne is already installed${idsCL[Default]}"