diff --git a/defaults.inc b/defaults.inc index 2bc76e6..2f02229 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.1.1' +VERS='2026.2.1' 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 073636e..58b72e5 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -41,10 +41,10 @@ INSTALL_SCREENCONNECT() { echo echo -en "${idsCL[LightYellow]}Paste the URL provided from the Build Installer: ${idsCL[Default]}" - read -e RMMURL - wget "${RMMURL}" -o /tmp/rmminstall - dpkg -i /tmp/rmminstall - rm -f /tmp/rmminstall + read -e SCURL + wget "${SCURL}" -o /tmp/scinstall + dpkg -i /tmp/scinstall + rm -f /tmp/scinstall echo -e "\n${idsCL[Green]}ScreenConnect has been installed${idsCL[Default]}" [ ${action-x} ] && exit 0 @@ -52,6 +52,25 @@ INSTALL_SCREENCONNECT() { esac } +INSTALL_RMM() { + read -n 1 -p "Are you sure you wish to install RMM (Y/n)?" choice + case "$choice" in + [Nn]) MAIN_MENU;; + * ) + echo + + echo -en "${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}') bash /tmp/rmminstall + rm -f /tmp/rmminstall + + echo -e "\n${idsCL[Green]}RMM has been installed${idsCL[Default]}" + [ ${action-x} ] && exit 0 + ENTER2CONTINUE + esac +} + MAIN_MENU() { while :