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

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

View File

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