From 1a2dc65524234d7b218a4c3ce2e0cb5910cbe44d Mon Sep 17 00:00:00 2001 From: jinqilin721 Date: Fri, 4 Aug 2023 10:47:55 +0800 Subject: [PATCH] 23.08.04-update --- install/install_panel.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install/install_panel.sh b/install/install_panel.sh index f26335d..b3d0579 100644 --- a/install/install_panel.sh +++ b/install/install_panel.sh @@ -241,7 +241,7 @@ Install_RPM_Pack(){ ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #尝试同步国际时间(从ntp服务器) - ntpdate 0.asia.pool.ntp.org + ntpdate ntp.aliyun.com setenforce 0 fi @@ -268,6 +268,14 @@ Install_RPM_Pack(){ if [ -z "${ALI_OS}" ];then yum install epel-release -y fi + + # 修改epel安装源 + sed -e 's!^metalink=!#metalink=!g' \ + -e 's!^#baseurl=!baseurl=!g' \ + -e 's!download\.fedoraproject\.org/pub/epel!mirrors.xinac.net/epel!g' \ + -e 's!download\.example/pub/epel!mirrors.xinac.net/epel!g' \ + -i.bak \ + /etc/yum.repos.d/epel*.repo } Install_Deb_Pack(){ ln -sf bash /bin/sh