23.08.04-update
parent
0e6b5f67fc
commit
1a2dc65524
|
@ -241,7 +241,7 @@ Install_RPM_Pack(){
|
||||||
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
|
||||||
#尝试同步国际时间(从ntp服务器)
|
#尝试同步国际时间(从ntp服务器)
|
||||||
ntpdate 0.asia.pool.ntp.org
|
ntpdate ntp.aliyun.com
|
||||||
setenforce 0
|
setenforce 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -268,6 +268,14 @@ Install_RPM_Pack(){
|
||||||
if [ -z "${ALI_OS}" ];then
|
if [ -z "${ALI_OS}" ];then
|
||||||
yum install epel-release -y
|
yum install epel-release -y
|
||||||
fi
|
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(){
|
Install_Deb_Pack(){
|
||||||
ln -sf bash /bin/sh
|
ln -sf bash /bin/sh
|
||||||
|
|
Loading…
Reference in New Issue