ci: install openssl11 for centos7 amd64 only

This commit is contained in:
William Yang 2021-09-03 09:50:25 +02:00 committed by Rory Z
parent 0dd09b06f1
commit 6e7d3d05e4
1 changed files with 6 additions and 2 deletions

View File

@ -91,8 +91,12 @@ emqx_test(){
;;
"rpm")
packagename=$(basename "${PACKAGE_PATH}/${EMQX_NAME}"-*.rpm)
# EMQX OTP requires openssl11 to have TLS1.3 support
yum install -y openssl11
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
echo "package install error"