diff --git a/README.md b/README.md index 104d5af..b55ef9d 100644 --- a/README.md +++ b/README.md @@ -5,24 +5,24 @@ support **CentOS 6+/Debian 8+/Ubuntu 14+** ## Install without compile(recommend) ``` -bash <(curl -sL https://git.io/fhqMz) +bash <(curl -sL https://python3.netlify.com/install.sh) ``` ## Install with compile(latest version) ``` -bash <(curl -sL https://git.io/fhqMz) --latest +bash <(curl -sL https://python3.netlify.com/install.sh) --latest ``` ## Install with compile(special version) ``` -bash <(curl -sL https://git.io/fhqMz) -v 3.6.5 +bash <(curl -sL https://python3.netlify.com/install.sh) -v 3.6.5 ``` ## Only install python3 ``` -bash <(curl -sL https://git.io/fhqMz) --nopip +bash <(curl -sL https://python3.netlify.com/install.sh) --nopip ``` find the special version in [python_version_list](https://www.python.org/ftp/python/), script will auto download and compile it -if os openssl version less than **1.0.2** , script will auto install latest openssl before compile python3, it may be have risk(except new install os), so recommend install without compile way +if os openssl version less than **1.0.2** , script will auto install latest openssl before compile python3, it may be have risk(except new install os), so recommend install without compile way \ No newline at end of file diff --git a/py3_install.sh b/install.sh similarity index 98% rename from py3_install.sh rename to install.sh index 9f883e6..be53a00 100644 --- a/py3_install.sh +++ b/install.sh @@ -157,7 +157,7 @@ webInstall(){ ${PACKAGE_MANAGER} install epel-release -y ${PACKAGE_MANAGER} install https://centos7.iuscommunity.org/ius-release.rpm -y ${PACKAGE_MANAGER} install python36u -y - ln -s /bin/python3.6 /bin/python3 + [[ ! -e /bin/python3 ]] && ln -s /bin/python3.6 /bin/python3 elif [[ ${OS} == 'CentOS8' ]];then ${PACKAGE_MANAGER} install python3 -y fi