Update proxmenu-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user