chore: improve installation experience (#5859)

This commit is contained in:
leslie 2021-12-22 11:17:01 +08:00 committed by GitHub
parent 41b55a9970
commit a102407510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ function detect_aur_helper() {
AUR_HELPER=pacaur
else
echo No available AUR helpers found. Please specify your AUR helper by AUR_HELPER.
exit -1
exit 255
fi
}
@ -49,7 +49,7 @@ function install_dependencies_with_yum() {
local common_dep="curl git gcc openresty-openssl111-devel unzip pcre pcre-devel openldap-devel"
if [ "${1}" == "centos" ]; then
# add APISIX source
sudo yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo
sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm
# install apisix-base and some compilation tools
# shellcheck disable=SC2086