update
This commit is contained in:
+11
-3
@@ -82,9 +82,11 @@ INSTALL_SCREENCONNECT() {
|
||||
* )
|
||||
echo
|
||||
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; }
|
||||
wget "${SCURL}" -O /tmp/scinstall
|
||||
unset SCURL
|
||||
dpkg -i /tmp/scinstall
|
||||
apt install --fix-broken -y
|
||||
apt remove "connectwis*" -y > /dev/null 2>&1
|
||||
@@ -104,18 +106,22 @@ INSTALL_RMM() {
|
||||
echo
|
||||
|
||||
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; }
|
||||
wget "${RMMURL}" -O /tmp/rmminstall
|
||||
if [[ "$RMMURL" != *TKN* || "$RMMURL" != */RUN* ]]; then
|
||||
echo "Unable to extract the RMM token from the URL."
|
||||
unset RMMURL
|
||||
FINISH_ACTION
|
||||
return
|
||||
fi
|
||||
TOKEN="${RMMURL#*TKN}"
|
||||
TOKEN="${TOKEN%%/RUN*}"
|
||||
unset RMMURL
|
||||
[[ -n "$TOKEN" ]] || { echo "The RMM token is empty."; FINISH_ACTION; return; }
|
||||
TOKEN="$TOKEN" bash /tmp/rmminstall
|
||||
unset TOKEN
|
||||
systemctl restart ITSPlatform
|
||||
# rm -f /tmp/rmminstall
|
||||
|
||||
@@ -127,13 +133,15 @@ INSTALL_RMM() {
|
||||
INSTALL_S1() {
|
||||
echo
|
||||
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; }
|
||||
cd /tmp || return 1
|
||||
rm -f "/tmp/${S1_PACKAGE}"
|
||||
wget "$S1_DOWNLOAD_URL" -O "/tmp/${S1_PACKAGE}"
|
||||
dpkg -i "/tmp/${S1_PACKAGE}"
|
||||
/opt/sentinelone/bin/sentinelctl management token set "$s1token"
|
||||
unset s1token
|
||||
/opt/sentinelone/bin/sentinelctl control start
|
||||
rm -f "/tmp/${S1_PACKAGE}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user