This commit is contained in:
2026-07-25 15:35:51 -05:00
parent 8696de1559
commit 601457f9d0
2 changed files with 72 additions and 110 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-27' VERS='2026.7.25-28'
noupdate=' ' noupdate=' '
+71 -109
View File
@@ -108,39 +108,26 @@ INSTALL_PULSE() {
} }
INSTALL_ACRONIS() { INSTALL_ACRONIS() {
read -n 1 -p "Are you sure you wish to install Acronis (Y/n)?" choice echo
case "$choice" in if ! TAPM_AUTHORIZE "install-acronis" "" "Acronis installation"; then
[Nn]) echo;; FINISH_ACTION
* ) return
echo fi
if ! TAPM_AUTHORIZE "install-acronis" "" "Acronis installation"; then TAPM_CLEAR_AUTHORIZATION
FINISH_ACTION cd /tmp || return 1
return wget "https://us5-cloud.acronis.com/bc/api/ams/links/agents/redirect?language=multi&channel=CURRENT&system=linux&architecture=64&productType=enterprise&login=010180ae-63c4-4495-bed0-4ec934c25af9&white_labeled=0" -O ./acronisinstall
fi chmod +x ./acronisinstall
TAPM_CLEAR_AUTHORIZATION ./acronisinstall
cd /tmp || return 1 rm -f ./acronisinstall
wget "https://us5-cloud.acronis.com/bc/api/ams/links/agents/redirect?language=multi&channel=CURRENT&system=linux&architecture=64&productType=enterprise&login=010180ae-63c4-4495-bed0-4ec934c25af9&white_labeled=0" -O ./acronisinstall echo
chmod +x ./acronisinstall echo -e "\n${idsCL[Green]}Acronis has been installed${idsCL[Default]}"
./acronisinstall FINISH_ACTION
rm -f ./acronisinstall
echo
echo -e "\n${idsCL[Green]}Acronis has been installed${idsCL[Default]}"
FINISH_ACTION
;;
esac
} }
INSTALL_PROXMENUX() { INSTALL_PROXMENUX() {
# read -n 1 -p "Are you sure you wish to install ProxMenux (Y/n)?" choice bash -c "$(wget -qLO - https://raw.githubusercontent.com/MacRimi/ProxMenux/main/install_proxmenux.sh)"
# case "$choice" in
# [Nn]) MAIN_MENU;;
# * )
# echo
bash -c "$(wget -qLO - https://raw.githubusercontent.com/MacRimi/ProxMenux/main/install_proxmenux.sh)"
# systemctl disable --now proxmenux-monitor # systemctl disable --now proxmenux-monitor
menu menu
# echo -e "\n${idsCL[Green]}ProxMenux has been installed${idsCL[Default]}"
# esac
} }
PROXMENUX_POST_INSTALL() { PROXMENUX_POST_INSTALL() {
@@ -154,80 +141,65 @@ PROXMENUX_POST_INSTALL() {
} }
INSTALL_GLANCES() { INSTALL_GLANCES() {
read -n 1 -p "Are you sure you wish to install Glances (Y/n)?" choice echo
case "$choice" in apt install glances -y
[Nn]) echo;; echo -e "\n${idsCL[Green]}Glances has been installed${idsCL[Default]}"
* ) FINISH_ACTION
echo
apt install glances -y
echo -e "\n${idsCL[Green]}Glances has been installed${idsCL[Default]}"
FINISH_ACTION
esac
} }
INSTALL_SCREENCONNECT() { INSTALL_SCREENCONNECT() {
read -n 1 -p "Are you sure you wish to install ScreenConnect (Y/n)?" choice echo
case "$choice" in if ! TAPM_AUTHORIZE "install-screenconnect" "" "ScreenConnect installation"; then
[Nn]) echo;;
* )
echo
if ! TAPM_AUTHORIZE "install-screenconnect" "" "ScreenConnect installation"; then
FINISH_ACTION
return
fi
TAPM_CLEAR_AUTHORIZATION
echo -en "\n${idsCL[LightYellow]}Paste the URL provided from the Build Installer: ${idsCL[Default]}"
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
dpkg -i /tmp/scinstall
rm -f /tmp/scinstall
systemctl disable --now proxmenux-monitor
echo -e "\n${idsCL[Green]}ScreenConnect has been installed${idsCL[Default]}"
FINISH_ACTION FINISH_ACTION
esac return
fi
TAPM_CLEAR_AUTHORIZATION
echo -en "\n${idsCL[LightYellow]}Paste the URL provided from the Build Installer: ${idsCL[Default]}"
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
dpkg -i /tmp/scinstall
rm -f /tmp/scinstall
systemctl disable --now proxmenux-monitor
echo -e "\n${idsCL[Green]}ScreenConnect has been installed${idsCL[Default]}"
FINISH_ACTION
} }
INSTALL_RMM() { INSTALL_RMM() {
read -n 1 -p "Are you sure you wish to install RMM (Y/n)?" choice echo
case "$choice" in if ! TAPM_AUTHORIZE "install-rmm" "" "RMM installation"; then
[Nn]) echo;;
* )
echo
if ! TAPM_AUTHORIZE "install-rmm" "" "RMM installation"; then
FINISH_ACTION
return
fi
TAPM_CLEAR_AUTHORIZATION
echo -en "\n${idsCL[LightYellow]}Paste the Linux Server URL provided from the Download Agent screen: ${idsCL[Default]}"
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
echo -e "\n${idsCL[Green]}RMM has been installed${idsCL[Default]}"
FINISH_ACTION FINISH_ACTION
esac return
fi
TAPM_CLEAR_AUTHORIZATION
echo -en "\n${idsCL[LightYellow]}Paste the Linux Server URL provided from the Download Agent screen: ${idsCL[Default]}"
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
echo -e "\n${idsCL[Green]}RMM has been installed${idsCL[Default]}"
FINISH_ACTION
} }
INSTALL_S1() { INSTALL_S1() {
@@ -282,10 +254,6 @@ INSTALL_S1() {
} }
INSTALL_OMSA() { INSTALL_OMSA() {
read -n 1 -p "Are you sure you wish to install Dell OpenManage Administrator (Y/n)?" choice
case "$choice" in
[Nn]) echo;;
* )
echo echo
mkdir -p /tmp/omsa mkdir -p /tmp/omsa
cd /tmp/omsa || return 1 cd /tmp/omsa || return 1
@@ -327,7 +295,6 @@ INSTALL_OMSA() {
echo -e "\n${idsCL[Green]}Dell OMSA has been installed${idsCL[Default]}" echo -e "\n${idsCL[Green]}Dell OMSA has been installed${idsCL[Default]}"
echo -e "\n${idsCL[LightCyan]}Available at: ${idsCL[LightGreen]}https://${RNIP}:1311${idsCL[Default]}" echo -e "\n${idsCL[LightCyan]}Available at: ${idsCL[LightGreen]}https://${RNIP}:1311${idsCL[Default]}"
FINISH_ACTION FINISH_ACTION
esac
} }
DOWNLOAD_VIRTIO() { DOWNLOAD_VIRTIO() {
@@ -486,17 +453,12 @@ MAINTENANCE_MODE(){
} }
INSTALL_KEEPALIVE() { INSTALL_KEEPALIVE() {
read -n 1 -p "Are you sure you wish to install Keepalive on all Hosts (Y/n)?" choice echo
case "$choice" in
[Nn]) echo;;
* )
echo
bash /opt/idssys/ta-proxmenu/inc/deploy-proxmox-keepalived.sh bash /opt/idssys/ta-proxmenu/inc/deploy-proxmox-keepalived.sh
echo -e "\n${idsCL[Green]}Keepalive has been installed${idsCL[Default]}" echo -e "\n${idsCL[Green]}Keepalive has been installed${idsCL[Default]}"
FINISH_ACTION FINISH_ACTION
esac
} }
UPDATE_CACHE_DIR='/var/cache/ta-proxmenu' UPDATE_CACHE_DIR='/var/cache/ta-proxmenu'