From 363242fd610f27a8bd0bea835d73dcec44755693 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 31 Mar 2022 22:32:47 +0200 Subject: [PATCH] build: no upgrade base for debian11 at version 4.4.2 --- build | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/build b/build index 83190bcbd..fa6a41615 100755 --- a/build +++ b/build @@ -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"