Skip to content

Commit

Permalink
Merge pull request #1085 from usmannasir/qtwrk-patch-1
Browse files Browse the repository at this point in the history
fix Debug_Log2 and update ubuntu 22.04
  • Loading branch information
usmannasir authored Jul 3, 2023
2 parents 151c07c + ba08544 commit acf1873
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cyberpanel_utility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 . )
Expand Down

0 comments on commit acf1873

Please sign in to comment.