CL8 detection during update

This commit is contained in:
Muttahir Aon Syed
2020-06-18 22:27:00 +05:00
parent 8082560750
commit f906aa0a4b

View File

@@ -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"