diff --git a/scripts/relup-test/run-pkg.sh b/scripts/relup-test/run-pkg.sh index 0a7fda049..1a1949b4d 100755 --- a/scripts/relup-test/run-pkg.sh +++ b/scripts/relup-test/run-pkg.sh @@ -13,4 +13,20 @@ tar -C emqx -zxf "$PKG" ln -s "$(pwd)/emqx/bin/emqx" /usr/bin/emqx ln -s "$(pwd)/emqx/bin/emqx_ctl" /usr/bin/emqx_ctl +if command -v apt; then + apt update -y + apt install -y \ + curl \ + jq \ + libffi-dev \ + libkrb5-3 \ + libkrb5-dev \ + libncurses5-dev \ + libsasl2-2 \ + libsasl2-dev \ + libsasl2-modules-gssapi-mit \ + libssl-dev \ + zip +fi + emqx console diff --git a/scripts/relup-test/run-relup-lux.sh b/scripts/relup-test/run-relup-lux.sh index 54be86444..d446ee29f 100755 --- a/scripts/relup-test/run-relup-lux.sh +++ b/scripts/relup-test/run-relup-lux.sh @@ -11,6 +11,8 @@ if [ -z "$old_vsn" ]; then exit 1 fi +rebuild="${2:-no_rebuild}" + # ensure dir cd -P -- "$(dirname -- "$0")/../.." @@ -36,6 +38,10 @@ case "$old_vsn" in ;; esac +if [ "$rebuild" = "--build" ]; then + make "${profile}-tgz" +fi + # From now on, no need for the v|e prefix OLD_VSN="${old_vsn#[e|v]}"