From 6c5bfc09eae6753837918b855c9c503de3128202 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Wed, 3 Jul 2024 13:20:24 +0500 Subject: [PATCH] al9 --- cyberpanel_upgrade.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index cb46d3244..ff037e8d6 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -121,7 +121,7 @@ elif grep -q -E "CloudLinux 7|CloudLinux 8" /etc/os-release ; then Server_OS="CloudLinux" elif grep -q -E "Rocky Linux" /etc/os-release ; then Server_OS="RockyLinux" -elif grep -q "AlmaLinux-8" /etc/os-release ; then +elif grep -q -E "AlmaLinux-8|AlmaLinux-9" /etc/os-release ; then Server_OS="AlmaLinux" elif grep -q -E "Ubuntu 18.04|Ubuntu 20.04|Ubuntu 20.10|Ubuntu 22.04" /etc/os-release ; then Server_OS="Ubuntu" @@ -417,6 +417,22 @@ EOF dnf install epel-release -y + dnf install -y wget strace htop net-tools telnet curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel mariadb-connector-c-devel curl-devel git platform-python-devel tar socat bind-utils + dnf install gpgme-devel -y + dnf install python3 -y + fi + + elif [[ "$Server_OS_Version" = "9" ]] ; then + rm -f /etc/yum.repos.d/CentOS-PowerTools-CyberPanel.repo + + if [[ "$Server_Country" = "CN" ]] ; then + dnf --nogpg install -y https://cyberpanel.sh/mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el9.noarch.rpm + else + dnf --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el9.noarch.rpm + fi + + dnf install epel-release -y + dnf install -y wget strace htop net-tools telnet curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel mariadb-connector-c-devel curl-devel git platform-python-devel tar socat bind-utils dnf install gpgme-devel -y dnf install python3 -y