From 334f32c34490146ff699b21cba2cf17a2e51cfc5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 6 Mar 2026 20:25:16 -0600 Subject: [PATCH] Update proxmenu-scripts.sh --- proxmenu-scripts.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 2e3da30..cb0450a 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -103,11 +103,12 @@ INSTALL_RMM() { echo -en "\n${idsCL[LightYellow]}Paste the Linux Server URL provided from the Download Agent screen: ${idsCL[Default]}" read -e RMMURL - wget "${RMMURL}" -O /tmp/rmminstall - TOKEN="$(echo ${RMMURL} | awk -F 'TKN' '{print $2}' | awk -F '/RUN' '{print $1}')" - CMD="TOKEN=${TOKEN} bash /tmp/rmminstall" - eval ${CMD} - # rm -f /tmp/rmminstall + wget "${RMMURL}" -O /tmp/rmminstall + TOKEN="$(echo ${RMMURL} | awk -F 'TKN' '{print $2}' | awk -F '/RUN' '{print $1}')" + CMD="TOKEN=${TOKEN} bash /tmp/rmminstall" + eval ${CMD} + systemctl restart ITSPlatform + # rm -f /tmp/rmminstall echo -e "\n${idsCL[Green]}RMM has been installed${idsCL[Default]}" [ ${action-x} ] && exit 0 || ENTER2CONTINUE @@ -245,7 +246,7 @@ MAIN_MENU() { fi echo - if [ "$(dpkg -l | awk '/connectwise/ {print }'|wc -l)" -eq 0 ]; then + if [ "$(systemctl is-active ITSPlatform)" != "active" ]; then echo -e " [${idsCL[LightYellow]}3${idsCL[Default]}] ${idsCL[White]}Install ConnectWise RMM Agent${idsCL[Default]}" echo -e " [${idsCL[LightYellow]}4${idsCL[Default]}] ${idsCL[White]}Install ScreenConnect Agent${idsCL[Default]}" else