Update cyberpanel_upgrade.sh

This commit is contained in:
Gergely Lonyai
2023-11-22 17:44:02 +01:00
committed by GitHub
parent 9837bdf1dc
commit 3fad19953f

View File

@@ -113,7 +113,9 @@ if ! uname -m | grep -qE 'x86_64|aarch64' ; then
exit
fi
if grep -q -E "CentOS Linux 7|CentOS Linux 8" /etc/os-release ; then
if grep -q -E "CentOS Linux 7|CentOS Linux 8|CentOS Stream" /etc/os-release ; then
Server_OS="CentOS"
elif grep -q "Red Hat Enterprise Linux" /etc/os-release ; then
Server_OS="CentOS"
elif grep -q -E "CloudLinux 7|CloudLinux 8" /etc/os-release ; then
Server_OS="CloudLinux"