diff --git a/cyberpanel.sh b/cyberpanel.sh index c59f06abf..f43e954f9 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -263,6 +263,8 @@ elif grep -q "Red Hat Enterprise Linux" /etc/os-release ; then Server_OS="RedHat" elif grep -q "AlmaLinux-8" /etc/os-release ; then Server_OS="AlmaLinux" +elif grep -q "AlmaLinux-9" /etc/os-release ; then + Server_OS="AlmaLinux" 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 diff --git a/install/install.py b/install/install.py index a8c0080f5..9a050491b 100755 --- a/install/install.py +++ b/install/install.py @@ -56,7 +56,8 @@ def get_distro(): if data.find('CentOS Linux release 8') > -1: return cent8 - if data.find('AlmaLinux release 8') > -1: + ## if almalinux 9 then pretty much same as cent8 + if data.find('AlmaLinux release 8') > -1 or data.find('AlmaLinux release 9') > -1: return cent8 if data.find('Rocky Linux release 8') > -1 or data.find('Rocky Linux 8') > -1 or data.find('rocky:8') > -1: return cent8 diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index baf181121..fd577f483 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -48,6 +48,8 @@ def FetchCloudLinuxAlmaVersionVersion(): return 'al-88' elif (data.find('AlmaLinux') > -1 or data.find('almalinux') > -1) and (data.find('8.7') > -1 or data.find('Stone Smilodon') > -1): return 'al-87' + elif (data.find('AlmaLinux') > -1 or data.find('almalinux') > -1) and (data.find('9.3') > -1 or data.find('Shamrock Pampas') > -1): + return 'al-93' else: return -1