Skip to content
Permalink
Browse files
CL8 detection during update
  • Loading branch information
aonsyed committed Jun 18, 2020
1 parent 8082560 commit f906aa0a4bd9287902cb450bbe873258a785388e
Showing 1 changed file with 12 additions and 0 deletions.
@@ -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"

0 comments on commit f906aa0

Please sign in to comment.