1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-28 11:03:57 +02:00

Update openwrt.sh

fixes https://github.com/tteck/Proxmox/issues/1924
This commit is contained in:
tteckster 2023-10-15 07:27:56 -04:00 committed by GitHub
parent 937695b3b8
commit e71b8cd2de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,8 +431,8 @@ msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
msg_info "Getting URL for OpenWrt Disk Image"
regex='<strong>Current Stable Release - OpenWrt ([^/]*)<\/strong>' && response=$(curl -s https://openwrt.org) && [[ $response =~ $regex ]] && stableVersion="${BASH_REMATCH[1]}"
URL=https://downloads.openwrt.org/releases/$stableVersion/targets/x86/64/openwrt-$stableVersion-x86-64-generic-ext4-combined.img.gz
# regex='<strong>Current Stable Release - OpenWrt ([^/]*)<\/strong>' && response=$(curl -s https://openwrt.org) && [[ $response =~ $regex ]] && stableVersion="${BASH_REMATCH[1]}"
URL=https://downloads.openwrt.org/releases/23.05.0/targets/x86/64/openwrt-23.05.0-x86-64-generic-ext4-combined.img.gz
sleep 2
msg_ok "${CL}${BL}${URL}${CL}"