ci: ensure emqx runtime dependency
This commit is contained in:
parent
2d9383842c
commit
34ba414541
|
@ -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
|
||||
|
|
|
@ -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]}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue