Skip to content

Commit

Permalink
Fix some trivial issue with the installation to CentOS Stream 9
Browse files Browse the repository at this point in the history
  • Loading branch information
lonyai committed Jan 10, 2025
1 parent 6f28d39 commit 2ca84ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ yum update curl wget ca-certificates -y 1> /dev/null
elif echo $OUTPUT | grep -q "CentOS Linux 8" ; then
echo -e "\nDetecting Centos 8...\n"
SERVER_OS="CentOS8"
elif echo $OUTPUT | grep -q "CentOS Linux 9" ; then
echo -e "\nDetecting Centos 9...\n"
SERVER_OS="CentOS8"
yum install curl wget -y 1> /dev/null
yum update curl wget ca-certificates -y 1> /dev/null
elif echo $OUTPUT | grep -q "AlmaLinux 8" ; then
Expand Down
2 changes: 2 additions & 0 deletions install/installCyberPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def FetchCloudLinuxAlmaVersionVersion():
return 'al-87'
elif (data.find('AlmaLinux') > -1 or data.find('almalinux') > -1) and (data.find('9.4') > -1 or data.find('9.3') > -1 or data.find('Shamrock Pampas') > -1 or data.find('Seafoam Ocelot') > -1 or data.find('VERSION="9.') > -1):
return 'al-93'
elif data.find('CentOS Stream 9') > -1:
return 'el-9'
else:
return -1

Expand Down

0 comments on commit 2ca84ad

Please sign in to comment.