This commit is contained in:
David Schroeder
2026-07-25 12:08:57 -05:00
parent ec038e9088
commit bdd69fbfff
2 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
action="${1:-}" action="${1:-}"
FOLDER='/opt/idssys/ta-proxmenu' FOLDER='/opt/idssys/ta-proxmenu'
VERS='2026.7.25-17' VERS='2026.7.25-18'
noupdate=' ' noupdate=' '
+11 -3
View File
@@ -82,9 +82,11 @@ INSTALL_SCREENCONNECT() {
* ) * )
echo echo
echo -en "\n${idsCL[LightYellow]}Paste the URL provided from the Build Installer: ${idsCL[Default]}" echo -en "\n${idsCL[LightYellow]}Paste the URL provided from the Build Installer: ${idsCL[Default]}"
read -r -e SCURL read -r -s SCURL
echo
[[ -n "$SCURL" ]] || { echo "No URL supplied."; FINISH_ACTION; return; } [[ -n "$SCURL" ]] || { echo "No URL supplied."; FINISH_ACTION; return; }
wget "${SCURL}" -O /tmp/scinstall wget "${SCURL}" -O /tmp/scinstall
unset SCURL
dpkg -i /tmp/scinstall dpkg -i /tmp/scinstall
apt install --fix-broken -y apt install --fix-broken -y
apt remove "connectwis*" -y > /dev/null 2>&1 apt remove "connectwis*" -y > /dev/null 2>&1
@@ -104,18 +106,22 @@ INSTALL_RMM() {
echo echo
echo -en "\n${idsCL[LightYellow]}Paste the Linux Server URL provided from the Download Agent screen: ${idsCL[Default]}" echo -en "\n${idsCL[LightYellow]}Paste the Linux Server URL provided from the Download Agent screen: ${idsCL[Default]}"
read -r -e RMMURL read -r -s RMMURL
echo
[[ -n "$RMMURL" ]] || { echo "No URL supplied."; FINISH_ACTION; return; } [[ -n "$RMMURL" ]] || { echo "No URL supplied."; FINISH_ACTION; return; }
wget "${RMMURL}" -O /tmp/rmminstall wget "${RMMURL}" -O /tmp/rmminstall
if [[ "$RMMURL" != *TKN* || "$RMMURL" != */RUN* ]]; then if [[ "$RMMURL" != *TKN* || "$RMMURL" != */RUN* ]]; then
echo "Unable to extract the RMM token from the URL." echo "Unable to extract the RMM token from the URL."
unset RMMURL
FINISH_ACTION FINISH_ACTION
return return
fi fi
TOKEN="${RMMURL#*TKN}" TOKEN="${RMMURL#*TKN}"
TOKEN="${TOKEN%%/RUN*}" TOKEN="${TOKEN%%/RUN*}"
unset RMMURL
[[ -n "$TOKEN" ]] || { echo "The RMM token is empty."; FINISH_ACTION; return; } [[ -n "$TOKEN" ]] || { echo "The RMM token is empty."; FINISH_ACTION; return; }
TOKEN="$TOKEN" bash /tmp/rmminstall TOKEN="$TOKEN" bash /tmp/rmminstall
unset TOKEN
systemctl restart ITSPlatform systemctl restart ITSPlatform
# rm -f /tmp/rmminstall # rm -f /tmp/rmminstall
@@ -127,13 +133,15 @@ INSTALL_RMM() {
INSTALL_S1() { INSTALL_S1() {
echo echo
echo -en "${idsCL[LightYellow]}Paste the customers SentinelOne Site Token: ${idsCL[Default]}" echo -en "${idsCL[LightYellow]}Paste the customers SentinelOne Site Token: ${idsCL[Default]}"
read -r -e s1token read -r -s s1token
echo
[[ -n "$s1token" ]] || { echo "No SentinelOne site token supplied."; FINISH_ACTION; return; } [[ -n "$s1token" ]] || { echo "No SentinelOne site token supplied."; FINISH_ACTION; return; }
cd /tmp || return 1 cd /tmp || return 1
rm -f "/tmp/${S1_PACKAGE}" rm -f "/tmp/${S1_PACKAGE}"
wget "$S1_DOWNLOAD_URL" -O "/tmp/${S1_PACKAGE}" wget "$S1_DOWNLOAD_URL" -O "/tmp/${S1_PACKAGE}"
dpkg -i "/tmp/${S1_PACKAGE}" dpkg -i "/tmp/${S1_PACKAGE}"
/opt/sentinelone/bin/sentinelctl management token set "$s1token" /opt/sentinelone/bin/sentinelctl management token set "$s1token"
unset s1token
/opt/sentinelone/bin/sentinelctl control start /opt/sentinelone/bin/sentinelctl control start
rm -f "/tmp/${S1_PACKAGE}" rm -f "/tmp/${S1_PACKAGE}"