Skip to content

Commit f906aa0

Browse files
committed
CL8 detection during update
1 parent 8082560 commit f906aa0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cyberpanel_upgrade.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,18 @@ elif echo $OUTPUT | grep -q "CentOS Linux 8"; then
192192
rm -f /etc/yum.repos.d/epel.repo.rpmsave
193193
yum autoremove epel-release -y
194194
dnf install epel-release -y
195+
elif echo $OUTPUT | grep -q "CloudLinux 8"; then
196+
rm -f /etc/yum.repos.d/CyberPanel.repo
197+
dnf --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm
198+
echo -e "\nDetecting Cloudlinux 8.X...\n"
199+
SERVER_OS="CentOS8"
200+
yum clean all
201+
yum update -y
202+
yum autoremove epel-release -y
203+
rm -f /etc/yum.repos.d/epel.repo
204+
rm -f /etc/yum.repos.d/epel.repo.rpmsave
205+
yum autoremove epel-release -y
206+
dnf install epel-release -y
195207
elif echo $OUTPUT | grep -q "Ubuntu 18.04"; then
196208
echo -e "\nDetecting Ubuntu 18.04...\n"
197209
SERVER_OS="Ubuntu"

0 commit comments

Comments
 (0)