added PVE-Shafred-Storage as default for DLDIR
This commit is contained in:
+3
-1
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
FOLDER='/opt/idssys/ta-proxmenu'
|
FOLDER='/opt/idssys/ta-proxmenu'
|
||||||
VERS='2026.5.28-5'
|
VERS='2026.6.6-1'
|
||||||
|
|
||||||
noupdate=' '
|
noupdate=' '
|
||||||
|
|
||||||
@@ -21,6 +21,8 @@ else
|
|||||||
fi
|
fi
|
||||||
VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/}
|
VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/}
|
||||||
|
|
||||||
|
[ -d /mnt/pve/PVE-Shared-Storage/template/iso ] && DLDIR=/mnt/pve/PVE-Shared-Storage/template/iso || DLDIR=/var/lib/vz/template/iso
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# if [ -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
# if [ -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
||||||
|
|||||||
+5
-5
@@ -176,12 +176,12 @@ 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 ${dldir}/${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 ${DLDIR}/${VIRTIO_FILE}
|
||||||
echo -e "${idsCL[Red]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Done${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
wget -q -F -P /var/lib/vz/template/iso ${VIRTIO_DOWNLOAD_URL} &
|
wget -q -F -P ${DLDIR} ${VIRTIO_DOWNLOAD_URL} &
|
||||||
echo -e "\n${idsCL[LightCyan]}Downloading will continue in the background\n"
|
echo -e "\n${idsCL[LightCyan]}Downloading will continue in the background\n"
|
||||||
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
||||||
}
|
}
|
||||||
@@ -302,9 +302,9 @@ MAIN_MENU() {
|
|||||||
else
|
else
|
||||||
echo -e "${idsCL[DarkGray]} [2] Pulse Monitoring is already installed${idsCL[Default]}"
|
echo -e "${idsCL[DarkGray]} [2] Pulse Monitoring is already installed${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
if [ -f /var/lib/vz/template/iso/${VIRTIO_FILE} ]; then
|
if [ -f ${DLDIR}/${VIRTIO_FILE} ]; then
|
||||||
echo -e "${idsCL[DarkGray]} [3] Current VirtIO drivers already downloaded to 'local' on this host${idsCL[Default]}"
|
echo -e "${idsCL[DarkGray]} [3] Current VirtIO drivers already downloaded to 'local' on this host${idsCL[Default]}"
|
||||||
elif [ -f /var/lib/vz/template/iso/virtio*.iso ]; then
|
elif [ -f ${DLDIR}/virtio*.iso ]; then
|
||||||
echo -e "${idsCL[White]} [${idsCL[LightYellow]}3${idsCL[Default]}] ${idsCL[LightGreen]}**${idsCL[White]}Download the available updated Win-VirtIO drivers to 'local' on this host${idsCL[Default]}"
|
echo -e "${idsCL[White]} [${idsCL[LightYellow]}3${idsCL[Default]}] ${idsCL[LightGreen]}**${idsCL[White]}Download the available updated Win-VirtIO drivers to 'local' on this host${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[White]} [${idsCL[LightYellow]}3${idsCL[Default]}] ${idsCL[White]}Download the current Win-VirtIO drivers to 'local' on this host${idsCL[Default]}"
|
echo -e "${idsCL[White]} [${idsCL[LightYellow]}3${idsCL[Default]}] ${idsCL[White]}Download the current Win-VirtIO drivers to 'local' on this host${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user