ci: fix rpm install package name

prior to this fix, package name 'emqx' was hard coded
this commit fixes it to use EMQX_NAME variable
because it can be 'emqx-edge' or 'emqx-enterprise'
This commit is contained in:
Zaiming (Stone) Shi 2022-01-02 20:47:08 +01:00
parent 77652b9858
commit 3ee4d69988
1 changed files with 2 additions and 7 deletions

View File

@ -131,13 +131,8 @@ emqx_test(){
fi
;;
"rpm")
if [[ "${ARCH}" == "amd64" && $(rpm -E '%{rhel}') == 7 ]] ;
then
# EMQX OTP requires openssl11 to have TLS1.3 support
yum install -y openssl11;
fi
rpm -ivh "${PACKAGE_PATH}/${packagename}"
if ! rpm -q emqx | grep -q emqx; then
yum install -y "${PACKAGE_PATH}/${packagename}"
if ! rpm -q "${EMQX_NAME}" | grep -q "${EMQX_NAME}"; then
echo "package install error"
exit 1
fi