From edd3b2a6225b90ee955165dd0fb7ebf5a25f7ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 26 Jul 2023 14:59:42 +0800 Subject: [PATCH] fix: openresty install in rhel9 --- scripts/openresty/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openresty/install.sh b/scripts/openresty/install.sh index 770d4ded..4b66d94b 100644 --- a/scripts/openresty/install.sh +++ b/scripts/openresty/install.sh @@ -30,7 +30,7 @@ ipLocation=$(curl -s https://ip.ping0.cc/geo) # 安装依赖 if [ "${OS}" == "centos" ]; then # EPEL 9 仓库中目前没有 GeoIP-devel 包,暂时使用 Remi 仓库 - dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm + dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm -y if [[ ${ipLocation} =~ "中国" ]]; then sed -e 's!^#mirrorlist=!mirrorlist=!g' -e 's!^mirrorlist=!#mirrorlist=!g' -e 's!^#baseurl=!baseurl=!g' -e 's!http://rpms.remirepo.net/enterprise!https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise!g' -i /etc/yum.repos.d/remi* fi