Merge pull request #8964 from emqx/0914-do-not-skip-relup-download
build: do not skip downloading relup base package
This commit is contained in:
commit
16d2d86d09
|
@ -57,15 +57,17 @@ for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do
|
||||||
filename="$PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip"
|
filename="$PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip"
|
||||||
url="https://packages.emqx.io/$DIR/$tag/$filename"
|
url="https://packages.emqx.io/$DIR/$tag/$filename"
|
||||||
echo "downloading base package from ${url} ..."
|
echo "downloading base package from ${url} ..."
|
||||||
if [ ! -f "$filename" ] && curl -L -I -m 10 -o /dev/null -s -w "%{http_code}" "${url}" | grep -q -oE "^[23]+" ; then
|
if [ -f "$filename" ]; then
|
||||||
curl -L -o "${filename}" "${url}"
|
echo "file $filename already downloaded; skikpped"
|
||||||
if [ "$SYSTEM" != "centos6" ]; then
|
continue
|
||||||
curl -L -o "${filename}.sha256" "${url}.sha256"
|
fi
|
||||||
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
|
curl -L -o "${filename}.sha256" "${url}.sha256"
|
||||||
echo "${SUMSTR} ${filename}" | $SHASUM -c || exit 1
|
SUMSTR=$(cat "${filename}.sha256")
|
||||||
fi
|
echo "got sha265sum: ${SUMSTR}"
|
||||||
|
## https://askubuntu.com/questions/1202208/checking-sha256-checksum
|
||||||
|
echo "${SUMSTR} ${filename}" | $SHASUM -c || exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,13 @@ case "${EDITION}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
SYSTEM="${SYSTEM:-$(./scripts/get-distro.sh)}"
|
||||||
|
|
||||||
while read -r git_tag; do
|
while read -r git_tag; do
|
||||||
|
if [ "$SYSTEM" = 'centos8' ] && [ "$git_tag" = 'v4.3.13' ]; then
|
||||||
|
# This version for centos8 was broken and deleted from archive
|
||||||
|
continue
|
||||||
|
fi
|
||||||
# shellcheck disable=SC2207
|
# shellcheck disable=SC2207
|
||||||
semver=($(parse_semver "$git_tag"))
|
semver=($(parse_semver "$git_tag"))
|
||||||
if [ "${#semver[@]}" -eq 3 ] && [ "${semver[2]}" -le "${CUR_SEMVER[2]}" ]; then
|
if [ "${#semver[@]}" -eq 3 ] && [ "${semver[2]}" -le "${CUR_SEMVER[2]}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue