Installer script for Chinese network

This installer uses Chinese network optimized mirror server to improve download speed during installation.
This commit is contained in:
qtwrk 2018-03-10 22:55:20 +01:00 committed by GitHub
parent c655d5c77a
commit 95acf4df49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

12
install-cn.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
yum clean all
yum update -y
yum install wget which curl -y
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
wget https://mirror.cyberpanel.net/install-cn.tar.gz
tar xzvf install-cn.tar.gz
cd install
chmod +x install.py
server_ip="$(wget -qO- http://whatismyip.akamai.com/)"
python install.py $server_ip