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