mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-07 22:10:16 +01:00
OpenWrt VM: read the stable release from downloads.openwrt.org (#18411)
* OpenWrt VM: read the stable release from downloads.openwrt.org The version came from a line of text on the openwrt.org wiki front page. One host got that page without the line three times in a row while others resolved fine at the same moment, and the run ended with exit 115 before anything was downloaded. .versions.json on the download server is what the OpenWrt firmware selector reads and names the stable release explicitly. * Update vm/openwrt-vm.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --------- Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
11acd8db75
commit
0973d1ccfb
+1
-1
@@ -259,7 +259,7 @@ post_to_api_vm
|
||||
vm_select_storage "$HN"
|
||||
msg_info "Getting URL for OpenWrt Disk Image"
|
||||
|
||||
vm_latest_from_index "https://openwrt.org" 'Current stable release - OpenWrt \K[0-9]+\.[0-9]+\.[0-9]+' || exit 115
|
||||
vm_latest_from_index "https://downloads.openwrt.org/.versions.json" '"stable_version": *"\K[0-9]+\.[0-9]+\.[0-9]+' || exit 115
|
||||
var_version="$VM_INDEX_LATEST"
|
||||
URL="https://downloads.openwrt.org/releases/$var_version/targets/x86/64/openwrt-$var_version-x86-64-generic-ext4-combined.img.gz"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user