Skip to content

Commit

Permalink
initial almalinux test
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed May 9, 2024
1 parent bfcc555 commit d6325bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cyberpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions install/installCyberPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d6325bb

Please sign in to comment.