mirror of https://github.com/wulabing/Xray_onekey
V3.2 Centos7 恢复支持更新
parent
2c58489f41
commit
7fe76d0def
11
install.sh
11
install.sh
|
@ -44,9 +44,14 @@ check_system(){
|
||||||
setsebool -P httpd_can_network_connect 1
|
setsebool -P httpd_can_network_connect 1
|
||||||
echo -e "${OK} ${GreenBG} SElinux 设置完成 ${Font} "
|
echo -e "${OK} ${GreenBG} SElinux 设置完成 ${Font} "
|
||||||
## Centos 也可以通过添加 epel 仓库来安装,目前不做改动
|
## Centos 也可以通过添加 epel 仓库来安装,目前不做改动
|
||||||
## 已改为 epel 安装
|
cat>/etc/yum.repos.d/nginx.repo<<EOF
|
||||||
yum -y install epel-release
|
[nginx]
|
||||||
echo -e "${OK} ${GreenBG} epel 源 安装完成 ${Font}"
|
name=nginx repo
|
||||||
|
baseurl=http://nginx.org/packages/mainline/centos/7/\$basearch/
|
||||||
|
gpgcheck=0
|
||||||
|
enabled=1
|
||||||
|
EOF
|
||||||
|
echo -e "${OK} ${GreenBG} Nginx 源 安装完成 ${Font}"
|
||||||
elif [[ "${ID}" == "debian" && ${VERSION_ID} -ge 8 ]];then
|
elif [[ "${ID}" == "debian" && ${VERSION_ID} -ge 8 ]];then
|
||||||
echo -e "${OK} ${GreenBG} 当前系统为 Debian ${VERSION_ID} ${VERSION} ${Font} "
|
echo -e "${OK} ${GreenBG} 当前系统为 Debian ${VERSION_ID} ${VERSION} ${Font} "
|
||||||
INS="apt"
|
INS="apt"
|
||||||
|
|
Loading…
Reference in New Issue