From 2d02ad5ae6749e9e9c20ee9e74f2e38084da42ff Mon Sep 17 00:00:00 2001 From: Jrohy <1101400284jackie@gmail.com> Date: Tue, 4 Dec 2018 19:47:39 +0800 Subject: [PATCH] Fix centos7 install py3 --- multi-v2ray.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/multi-v2ray.sh b/multi-v2ray.sh index 5a3ca6fe..7f90a9de 100644 --- a/multi-v2ray.sh +++ b/multi-v2ray.sh @@ -171,7 +171,11 @@ checkSys() { installDependent(){ if [[ ${OS} == 'CentOS' ]];then yum install epel-release curl wget unzip git ntp ntpdate socat crontabs lsof -y - [[ -z $(rpm -qa|grep python3) ]] && yum install python34 -y + if [[ -z $(rpm -qa|grep python3) ]];then + yum install https://centos7.iuscommunity.org/ius-release.rpm -y + yum install python36u -y + ln -s /bin/python3.6 /bin/python3 + fi else apt-get update apt-get install curl unzip git ntp wget ntpdate socat cron lsof -y