mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-12-30 20:29:41 +01:00
18 lines
550 B
Bash
18 lines
550 B
Bash
#!/bin/bash
|
|
yum autoremove epel-release -y
|
|
rm -f /etc/yum.repos.d/epel.repo
|
|
rm -f /etc/yum.repos.d/epel.repo.rpmsave
|
|
yum install epel-release -y
|
|
#some provider's centos7 template come with incorrect or misconfigured epel.repo
|
|
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://cyberpanel.net/install.tar.gz
|
|
tar xzvf install.tar.gz
|
|
cd install
|
|
chmod +x install.py
|
|
server_ip="$(wget -qO- http://whatismyip.akamai.com/)"
|
|
python install.py $server_ip
|