Skip to content

Commit

Permalink
Fix centos7 install py3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 4, 2018
1 parent ff08596 commit 2d02ad5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion multi-v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d02ad5

Please sign in to comment.