From ba0854476be6359ad823e7924fbece4b3d42c2cd Mon Sep 17 00:00:00 2001 From: qtwrk Date: Mon, 3 Jul 2023 03:42:47 +0200 Subject: [PATCH] Update cyberpanel_utility.sh fix Debug_Log2 and update ubuntu 22.04 --- cyberpanel_utility.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cyberpanel_utility.sh b/cyberpanel_utility.sh index 2dcb7531f..46a67c0ab 100644 --- a/cyberpanel_utility.sh +++ b/cyberpanel_utility.sh @@ -19,7 +19,7 @@ check_OS() { Server_OS="AlmaLinux" elif grep -q -E "CloudLinux 7|CloudLinux 8" /etc/os-release ; then Server_OS="CloudLinux" - elif grep -q -E "Ubuntu 18.04|Ubuntu 20.04|Ubuntu 20.10" /etc/os-release ; then + elif grep -q -E "Ubuntu 18.04|Ubuntu 20.04|Ubuntu 20.10|Ubuntu 22.04" /etc/os-release ; then Server_OS="Ubuntu" elif grep -q -E "Rocky Linux" /etc/os-release ; then Server_OS="RockyLinux" @@ -28,8 +28,7 @@ check_OS() { else echo -e "Unable to detect your system..." echo -e "\nCyberPanel is supported on x86_64 based Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, CentOS 7, CentOS 8, AlmaLinux 8, RockyLinux 8, CloudLinux 7, CloudLinux 8, openEuler 20.03, openEuler 22.03...\n" - Debug_Log2 "CyberPanel is supported on x86_64 based Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, CentOS 7, CentOS 8, AlmaLinux 8, RockyLinux 8, CloudLinux 7, CloudLinux 8, openEuler 20.03, openEuler 22.03... [404]" - exit + exit fi Server_OS_Version=$(grep VERSION_ID /etc/os-release | awk -F[=,] '{print $2}' | tr -d \" | head -c2 | tr -d . )