mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
initial almalinux test
This commit is contained in:
@@ -263,6 +263,8 @@ elif grep -q "Red Hat Enterprise Linux" /etc/os-release ; then
|
|||||||
Server_OS="RedHat"
|
Server_OS="RedHat"
|
||||||
elif grep -q "AlmaLinux-8" /etc/os-release ; then
|
elif grep -q "AlmaLinux-8" /etc/os-release ; then
|
||||||
Server_OS="AlmaLinux"
|
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
|
elif grep -q -E "CloudLinux 7|CloudLinux 8" /etc/os-release ; then
|
||||||
Server_OS="CloudLinux"
|
Server_OS="CloudLinux"
|
||||||
elif grep -q -E "Rocky Linux" /etc/os-release ; then
|
elif grep -q -E "Rocky Linux" /etc/os-release ; then
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ def get_distro():
|
|||||||
|
|
||||||
if data.find('CentOS Linux release 8') > -1:
|
if data.find('CentOS Linux release 8') > -1:
|
||||||
return cent8
|
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
|
return cent8
|
||||||
if data.find('Rocky Linux release 8') > -1 or data.find('Rocky Linux 8') > -1 or data.find('rocky:8') > -1:
|
if data.find('Rocky Linux release 8') > -1 or data.find('Rocky Linux 8') > -1 or data.find('rocky:8') > -1:
|
||||||
return cent8
|
return cent8
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ def FetchCloudLinuxAlmaVersionVersion():
|
|||||||
return 'al-88'
|
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):
|
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'
|
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:
|
else:
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user