changed haiku mirror as cdn no longer resolves

NY set as it seemed good enough.  Other working options left in comments in case
This commit is contained in:
Phil Clifford 2022-05-08 14:19:31 +01:00
parent 187da46c3b
commit 1fd1d35c74

View File

@ -963,8 +963,10 @@ function get_ghostbsd() {
function get_haiku() {
local EDITION="${1:-}"
local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
local URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}"
local HASH=""
# local URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}" # domain gone
local URL="http://mirror.rit.edu/haiku/${RELEASE}" # NY, USA
# local URL="https://mirrors.tnonline.net/haiku/haiku-release/${RELEASE}" # Sweden
# local URL="https://mirror.aarnet.edu.au/pub/haiku/${RELEASE}" # Aus
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}"