update
This commit is contained in:
+3
-6
@@ -3,18 +3,15 @@
|
|||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
FOLDER='/opt/idssys/ta-proxmenu'
|
FOLDER='/opt/idssys/ta-proxmenu'
|
||||||
VERS='2026.4.28-4'
|
VERS='2026.4.30-1'
|
||||||
|
|
||||||
noupdate=' restart cpu mm '
|
noupdate=' restart cpu mm '
|
||||||
|
|
||||||
|
|
||||||
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||||
|
|
||||||
url="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso"
|
VIRTIO_URL="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso"
|
||||||
while redirect_url=$( curl -I -s -S -f -w "%{redirect_url}\\n" -o /dev/null "${url}" ); do
|
|
||||||
VIRTIO_DOWNLOAD_URL=${url}; url=${redirect_url}; [[ -z "$url" ]] && break
|
|
||||||
done
|
|
||||||
VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/}
|
|
||||||
|
|
||||||
|
|
||||||
# if [ -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
# if [ -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
||||||
|
|||||||
+14
-9
@@ -174,15 +174,20 @@ INSTALL_OMSA() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DOWNLOAD_VIRTIO() {
|
DOWNLOAD_VIRTIO() {
|
||||||
echo -e "\n${idsCL[LightCyan]}Current \"Stable\" version available for download: ${idsCL[White]}${VIRTIO_FILE}${idsCL[Default]}"
|
while redirect_url=$( curl -I -s -S -f -w "%{redirect_url}\\n" -o /dev/null "${VIRTIO_URL}" ); do
|
||||||
if [ -f /var/lib/vz/template/iso/${VIRTIO_FILE} ]; then
|
VIRTIO_DOWNLOAD_URL=${url}; url=${redirect_url}; [[ -z "$url" ]] && break
|
||||||
echo -en "\n${idsCL[LightRed]}Removing existing download ... "
|
done
|
||||||
rm -f /var/lib/vz/template/iso/${VIRTIO_FILE}
|
VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/}
|
||||||
echo -e "${idsCL[Red]}Done${idsCL[Default]}"
|
|
||||||
fi
|
echo -e "\n${idsCL[LightCyan]}Current \"Stable\" version available for download: ${idsCL[White]}${VIRTIO_FILE}${idsCL[Default]}"
|
||||||
wget -q -F -P /var/lib/vz/template/iso ${VIRTIO_DOWNLOAD_URL} &
|
if [ -f /var/lib/vz/template/iso/${VIRTIO_FILE} ]; then
|
||||||
echo -e "\n${idsCL[LightCyan]}Downloading will continue in the background\n"
|
echo -en "\n${idsCL[LightRed]}Removing existing download ... "
|
||||||
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
rm -f /var/lib/vz/template/iso/${VIRTIO_FILE}
|
||||||
|
echo -e "${idsCL[Red]}Done${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
wget -q -F -P /var/lib/vz/template/iso ${VIRTIO_DOWNLOAD_URL} &
|
||||||
|
echo -e "\n${idsCL[LightCyan]}Downloading will continue in the background\n"
|
||||||
|
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
||||||
}
|
}
|
||||||
|
|
||||||
DETECT_CPU(){
|
DETECT_CPU(){
|
||||||
|
|||||||
Reference in New Issue
Block a user