Merge pull request #7487 from zmstone/0331-4.4.2-no-upgrade-base-for-debian11

build: no upgrade base for debian11 at version 4.4.2
This commit is contained in:
Xinyu Liu 2022-04-01 08:48:35 +08:00 committed by GitHub
commit 3bf9089533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

17
build
View File

@ -136,7 +136,22 @@ make_zip() {
local tarball="${relpath}/${tarname}"
local target_zip="${pkgpath}/${pkgname}"
tar zxf "${tarball}" -C "${tard}/emqx"
if ! [[ $SYSTEM == windows* ]]; then
has_relup='yes'
case "$SYSTEM" in
windows*)
# no relup support for windows
has_relup='no'
;;
debian11)
case "$PKG_VSN" in
4.4.2*)
# this is the first version for debian11, no relup
has_relup='no'
;;
esac
;;
esac
if [ "$has_relup" = 'yes' ]; then
./scripts/inject-relup.escript "${tard}/emqx/releases/${PKG_VSN}/relup"
fi
cp_dyn_libs "${tard}/emqx"