diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 38c635488..5490e738f 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -192,6 +192,18 @@ elif echo $OUTPUT | grep -q "CentOS Linux 8"; then rm -f /etc/yum.repos.d/epel.repo.rpmsave yum autoremove epel-release -y dnf install epel-release -y +elif echo $OUTPUT | grep -q "CloudLinux 8"; then + rm -f /etc/yum.repos.d/CyberPanel.repo + dnf --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm + echo -e "\nDetecting Cloudlinux 8.X...\n" + SERVER_OS="CentOS8" + yum clean all + yum update -y + yum autoremove epel-release -y + rm -f /etc/yum.repos.d/epel.repo + rm -f /etc/yum.repos.d/epel.repo.rpmsave + yum autoremove epel-release -y + dnf install epel-release -y elif echo $OUTPUT | grep -q "Ubuntu 18.04"; then echo -e "\nDetecting Ubuntu 18.04...\n" SERVER_OS="Ubuntu"