Update proxmenu-scripts.sh

This commit is contained in:
2026-03-07 14:20:10 -06:00
parent efd55f8725
commit 476ea29235

View File

@@ -7,16 +7,11 @@ source /opt/idssys/defaults/default.inc
source /opt/idssys/ta-proxmenu/defaults.inc
INSTALL_PULSE() {
read -n 1 -p "Are you sure you wish to install Pulse (Y/n)?" choice
case "$choice" in
[Nn]) MAIN_MENU;;
* )
echo
curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install.sh | bash
echo
echo -e "\n${idsCL[Green]}Pulse has been installed${idsCL[Default]}"
[ ${action-x} ] && exit 0 || ENTER2CONTINUE;;
esac
}
INSTALL_ACRONIS() {
@@ -33,6 +28,7 @@ INSTALL_ACRONIS() {
echo
echo -e "\n${idsCL[Green]}Acronis has been installed${idsCL[Default]}"
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
;;
esac
}
@@ -44,6 +40,7 @@ INSTALL_PROXMENUX() {
# echo
bash -c "$(wget -qLO - https://raw.githubusercontent.com/MacRimi/ProxMenux/main/install_proxmenux.sh)"
systemctl disable --now proxmenux-monitor
menu
# echo -e "\n${idsCL[Green]}ProxMenux has been installed${idsCL[Default]}"
# [ ${action-x} ] && exit 0 || ENTER2CONTINUE
# esac
@@ -115,12 +112,7 @@ INSTALL_RMM() {
}
INSTALL_S1() {
read -n 1 -p "Are you sure you wish to install the SentinelOne Agent (Y/n)?" choice
case "$choice" in
[Nn]) MAIN_MENU;;
* )
echo
echo -en "${idsCL[LightYellow]}Paste the customers SentinelOne Site Token: ${idsCL[Default]}"
read -e s1token
cd /tmp
@@ -132,7 +124,6 @@ INSTALL_S1() {
echo -e "\n${idsCL[Green]}SentinelOne Agent has been installed. Make sure its added to a \"DETECT ONLY\" policy${idsCL[Default]}"
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
esac
}
INSTALL_OMSA() {
@@ -215,6 +206,19 @@ DETECT_CPU(){
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
}
RESTART_PVE_SERVICES(){
echo -en "${idsCL[LightCyan]}Would you like to set '${idsCL[LightGreen]}cpu: $(proxclmc --list-only)${idsCL[LightCyan]}' on all VMs (y/N)?${idsCL[Default]} "
read -n 1 choice
case "$choice" in
[Yy]) echo
systemctl restart pve-cluster pvedaemon pvestatd pveproxy
echo;;
*) echo;;
echo -e "\n${idsCL[Green]}This host's services have been restarted${idsCL[Default]}"
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
}
MAIN_MENU() {
while :
do
@@ -227,6 +231,8 @@ MAIN_MENU() {
echo -e "---------------------------------------------------------------------------"
echo
echo -e " [${idsCL[LightYellow]}0${idsCL[Default]}] ${idsCL[White]}Detect CPU-Arch for Live Migrations${idsCL[Default]}"
echo -en " [${idsCL[LightYellow]}1${idsCL[Default]}] ${idsCL[White]}Run Post-Install Script${idsCL[Default]}"
[ -f /opt/.PROXMENUX_POST_INSTALL ] && echo -e "${idsCL[Cyan]} - Has been ran prevously${idsCL[Default]}" || echo
@@ -278,10 +284,9 @@ MAIN_MENU() {
echo -e " [${idsCL[LightYellow]}9${idsCL[Default]}] ${idsCL[White]}Download the current Win-VirtIO drivers to 'local' on this host${idsCL[Default]}"
fi
echo
echo -e " [${idsCL[LightYellow]}0${idsCL[Default]}] ${idsCL[White]}Detect CPU-Arch for Live Migrations${idsCL[Default]}"
echo
echo
echo -e " [${idsCL[LightYellow]}R0${idsCL[Default]}] ${idsCL[White]}Restart Proxmox Services${idsCL[Default]}"
echo -e " [${idsCL[LightYellow]}Q${idsCL[Default]}] ${idsCL[White]}Quit${idsCL[Default]}"
echo
echo
@@ -300,6 +305,7 @@ MAIN_MENU() {
[8]) INSTALL_OMSA;;
[9]) DOWNLOAD_VIRTIO;;
[0]) DETECT_CPU;;
[Rr]) RESTART_PVE_SERVICES;;
[Qq]) EXIT1
exit 0;;
*) echo "Thats an invaild option,";