checksums/scr/update-checksums

18 lines
463 B
Plaintext
Raw Normal View History

#!/bin/bash
# Run this to update checksums, providing the correct values to pull down the
# correct release and architectures
2022-08-08 10:51:18 +00:00
2022-11-30 23:18:04 +00:00
VER=$1
ARCH=$2
TYPE=$3
2022-08-08 10:51:18 +00:00
2022-11-30 23:18:04 +00:00
if [[ "${TYPE}" == "images" ]]; then
OUTPUT="${1}-${2}-combined.checksum"
elif [[ "${TYPE}" == "live" ]]; then
OUTPUT="${1}-${2}-live.ISO.checksum"
elif [[ "${TYPE}" == "isos" ]]; then
OUTPUT="${1}-${2}.ISO.checksum"
fi
2023-05-18 21:28:01 +00:00
curl https://dl.rockylinux.org/stg/rocky/${VER}/${TYPE}/${ARCH}/CHECKSUM > ${OUTPUT}