Update proxmenu-scripts.sh
This commit is contained in:
@@ -186,17 +186,14 @@ INSTALL_OMSA() {
|
|||||||
|
|
||||||
DOWNLOAD_VIRTIO() {
|
DOWNLOAD_VIRTIO() {
|
||||||
echo -e "\n${idsCL[LightCyan]}Current \"Stable\" version available for download: ${idsCL[White]}${VIRTIO_FILE}${idsCL[Default]}"
|
echo -e "\n${idsCL[LightCyan]}Current \"Stable\" version available for download: ${idsCL[White]}${VIRTIO_FILE}${idsCL[Default]}"
|
||||||
if [ -f /var/lib/vz/template/iso/${VIRTIO_FILE} ]; then
|
if [ -f /var/lib/vz/template/iso/${VIRTIO_FILE} ]; then
|
||||||
echo -en "\n${idsCL[LightRed]}Removing existing download ... "
|
echo -en "\n${idsCL[LightRed]}Removing existing download ... "
|
||||||
rm -f /var/lib/vz/template/iso/${VIRTIO_FILE}
|
rm -f /var/lib/vz/template/iso/${VIRTIO_FILE}
|
||||||
echo -e "${idsCL[Red]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Done${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
echo -en "\n${idsCL[LightCyan]}Downloading '${idsCL[White]}${VIRTIO_FILE}${idsCL[LightCyan]}' ... "
|
wget -q -F -P /var/lib/vz/template/iso ${VIRTIO_DOWNLOAD_URL} &
|
||||||
wget -q -F -P /var/lib/vz/template/iso ${VIRTIO_DOWNLOAD_URL}
|
echo -e "\n${idsCL[LightCyan]}Downloading will continue in the background\n"
|
||||||
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
||||||
|
|
||||||
echo -e "\n${idsCL[Green]}VirtIO drivers for Windows have been downloaded to the local storage${idsCL[Default]}"
|
|
||||||
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DETECT_CPU(){
|
DETECT_CPU(){
|
||||||
@@ -232,6 +229,7 @@ MAIN_MENU() {
|
|||||||
|
|
||||||
echo -en " [${idsCL[LightYellow]}1${idsCL[Default]}] ${idsCL[White]}Run Post-Install Script${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
|
[ -f /opt/.PROXMENUX_POST_INSTALL ] && echo -e "${idsCL[Cyan]} - Has been ran prevously${idsCL[Default]}" || echo
|
||||||
|
|
||||||
if ! pvesh get /cluster/resources | grep -i pulse &> /dev/nul ; then
|
if ! pvesh get /cluster/resources | grep -i pulse &> /dev/nul ; then
|
||||||
echo -e " [${idsCL[LightYellow]}2${idsCL[Default]}] ${idsCL[White]}Install Pulse Monitoring${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}2${idsCL[Default]}] ${idsCL[White]}Install Pulse Monitoring${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
@@ -245,11 +243,13 @@ MAIN_MENU() {
|
|||||||
else
|
else
|
||||||
echo -e "${idsCL[DarkGray]} [3] ConnectWise RMM Agent is already installed${idsCL[Default]}"
|
echo -e "${idsCL[DarkGray]} [3] ConnectWise RMM Agent is already installed${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(dpkg -l | awk '/cyberprotect/ {print }'|wc -l)" -eq 0 ]; then
|
if [ "$(dpkg -l | awk '/cyberprotect/ {print }'|wc -l)" -eq 0 ]; then
|
||||||
echo -e " [${idsCL[LightYellow]}5${idsCL[Default]}] ${idsCL[White]}Install Acronis Backup Agent${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}5${idsCL[Default]}] ${idsCL[White]}Install Acronis Backup Agent${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[DarkGray]} [5] Acronis Backup is already installed${idsCL[Default]}"
|
echo -e "${idsCL[DarkGray]} [5] Acronis Backup is already installed${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(dpkg -l | awk '/sentinelagent/ {print }'|wc -l)" -eq 0 ]; then
|
if [ "$(dpkg -l | awk '/sentinelagent/ {print }'|wc -l)" -eq 0 ]; then
|
||||||
echo -e " [${idsCL[LightYellow]}6${idsCL[Default]}] ${idsCL[White]}Install SentinelOne Agent${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}6${idsCL[Default]}] ${idsCL[White]}Install SentinelOne Agent${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
@@ -262,6 +262,7 @@ MAIN_MENU() {
|
|||||||
else
|
else
|
||||||
echo -e "${idsCL[DarkGray]} [7] Glances is already installed${idsCL[Default]}"
|
echo -e "${idsCL[DarkGray]} [7] Glances is already installed${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(dpkg -l | awk '/srvadmin-all/ {print }'|wc -l)" -eq 0 ]; then
|
if [ "$(dpkg -l | awk '/srvadmin-all/ {print }'|wc -l)" -eq 0 ]; then
|
||||||
echo -e " [${idsCL[LightYellow]}8${idsCL[Default]}] ${idsCL[White]}Install Dell OpenManage Server Administrator${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}8${idsCL[Default]}] ${idsCL[White]}Install Dell OpenManage Server Administrator${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
@@ -277,7 +278,7 @@ MAIN_MENU() {
|
|||||||
echo -e " [${idsCL[LightYellow]}9${idsCL[Default]}] ${idsCL[White]}Download the current Win-VirtIO drivers to 'local' on this host${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}9${idsCL[Default]}] ${idsCL[White]}Download the current Win-VirtIO drivers to 'local' on this host${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -e " [${idsCL[LightYellow]}0${idsCL[Default]}] ${idsCL[White]}Detect CPU-Arch for Live Migrations${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}0${idsCL[Default]}] ${idsCL[White]}Detect CPU-Arch for Live Migrations${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user