initial almalinux test

This commit is contained in:
usmannasir
2024-05-09 12:12:10 +04:00
parent bfcc555edb
commit d6325bbb9c
3 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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