Merge tag 'v4.3.20-alpha.2' into dev/v4.4.9

This commit is contained in:
Zaiming (Stone) Shi 2022-09-15 09:42:04 +02:00
commit eba6d33b49
1 changed files with 14 additions and 13 deletions

View File

@ -70,19 +70,20 @@ otp_vsn_for() {
for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do
filename="$PROFILE-${tag#[e|v]}-otp$(otp_vsn_for "$tag")-$SYSTEM-$ARCH.zip" filename="$PROFILE-${tag#[e|v]}-otp$(otp_vsn_for "$tag")-$SYSTEM-$ARCH.zip"
url="https://packages.emqx.io/$DIR/$tag/$filename" url="https://packages.emqx.io/$DIR/$tag/$filename"
if [ ! -f "$filename" ] && curl -L -I -m 10 -o /dev/null -s -w "%{http_code}" "${url}" | grep -q -oE "^[23]+" ; then echo "downloading base package from ${url} ..."
echo "downloading base package from ${url} ..." if [ -f "$filename" ]; then
curl -L -o "${filename}" "${url}" echo "file $filename already downloaded; skikpped"
if [ "$SYSTEM" != "centos6" ]; then continue
echo "downloading sha256 sum from ${url}.sha256 ..." fi
curl -L -o "${filename}.sha256" "${url}.sha256" echo "downloading base package from ${url} ..."
SUMSTR=$(cat "${filename}.sha256") curl -L -o "${filename}" "${url}"
echo "got sha265sum: ${SUMSTR}" if [ "$SYSTEM" != "centos6" ]; then
## https://askubuntu.com/questions/1202208/checking-sha256-checksum echo "downloading sha256 sum from ${url}.sha256 ..."
echo "${SUMSTR} ${filename}" | $SHASUM -c || exit 1 curl -L -o "${filename}.sha256" "${url}.sha256"
fi SUMSTR=$(cat "${filename}.sha256")
else echo "got sha265sum: ${SUMSTR}"
echo "file $filename already downloaded or doesn't exist in the archives; skipping it" ## https://askubuntu.com/questions/1202208/checking-sha256-checksum
echo "${SUMSTR} ${filename}" | $SHASUM -c || exit 1
fi fi
done done