Skip to content

Commit

Permalink
Update cyberpanel.sh with CentOS 9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
lonyai authored Nov 21, 2023
1 parent 416e8a4 commit 6320a78
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cyberpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,19 @@ if [[ $Server_OS = "CentOS" ]] ; then
rm -f /etc/yum.repos.d/epel.repo
rm -f /etc/yum.repos.d/epel.repo.rpmsave

if [[ "$Server_OS_Version" = "9" ]]; then
grep "Red Hat Enterprise Linux" /etc/os-release >/dev/null
if [[ $? ]] ; then
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Check_Return "yum repo" "no_exit"
else
yum config-manager --set-enabled crb > /dev/null 2>&1
yum install -y epel-release epel-next-release
Check_Return "yum repo" "no_exit"
fi
fi

if [[ "$Server_OS_Version" = "8" ]]; then
rpm --import https://cyberpanel.sh/www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
rpm --import https://cyberpanel.sh/dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8
Expand Down

0 comments on commit 6320a78

Please sign in to comment.