Skip to content

Commit 69bcfa0

Browse files
authored
Merge pull request #1579 from master3395/v2.5.5-dev
Enhance OS detection and support for AlmaLinux 10 and additional Ubun…
2 parents 4bedb9c + 1dcaea4 commit 69bcfa0

14 files changed

+285
-28
lines changed

CPScripts/mailscannerinstaller.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ elif grep -q -E "CloudLinux 7|CloudLinux 8" /etc/os-release ; then
5555
Server_OS="CloudLinux"
5656
elif grep -q -E "Rocky Linux" /etc/os-release ; then
5757
Server_OS="RockyLinux"
58-
elif grep -q -E "Ubuntu 18.04|Ubuntu 20.04|Ubuntu 20.10|Ubuntu 22.04" /etc/os-release ; then
58+
elif grep -q -E "Ubuntu 18.04|Ubuntu 20.04|Ubuntu 20.10|Ubuntu 22.04|Ubuntu 22.04.5|Ubuntu 24.04.3|Ubuntu 25.04|Ubuntu 25.10" /etc/os-release ; then
5959
Server_OS="Ubuntu"
6060
elif grep -q -E "openEuler 20.03|openEuler 22.03" /etc/os-release ; then
6161
Server_OS="openEuler"
6262
else
6363
echo -e "Unable to detect your system..."
64-
echo -e "\nCyberPanel is supported on x86_64 based Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, CentOS 7, CentOS 8, AlmaLinux 8, RockyLinux 8, CloudLinux 7, CloudLinux 8, openEuler 20.03, openEuler 22.03...\n"
64+
echo -e "\nCyberPanel is supported on x86_64 based Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, Ubuntu 22.04.5, Ubuntu 24.04.3, Ubuntu 25.04, Ubuntu 25.10, CentOS 7, CentOS 8, AlmaLinux 8, RockyLinux 8, CloudLinux 7, CloudLinux 8, openEuler 20.03, openEuler 22.03...\n"
6565
exit
6666
fi
6767

CPScripts/mailscanneruninstaller.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ elif grep -q -E "CloudLinux 7|CloudLinux 8" /etc/os-release ; then
1212
Server_OS="CloudLinux"
1313
elif grep -q -E "Rocky Linux" /etc/os-release ; then
1414
Server_OS="RockyLinux"
15-
elif grep -q -E "Ubuntu 18.04|Ubuntu 20.04|Ubuntu 20.10|Ubuntu 22.04" /etc/os-release ; then
15+
elif grep -q -E "Ubuntu 18.04|Ubuntu 20.04|Ubuntu 20.10|Ubuntu 22.04|Ubuntu 22.04.5|Ubuntu 24.04.3|Ubuntu 25.04|Ubuntu 25.10" /etc/os-release ; then
1616
Server_OS="Ubuntu"
1717
elif grep -q -E "openEuler 20.03|openEuler 22.03" /etc/os-release ; then
1818
Server_OS="openEuler"
1919
else
2020
echo -e "Unable to detect your system..."
21-
echo -e "\nCyberPanel is supported on x86_64 based Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, CentOS 7, CentOS 8, AlmaLinux 8, RockyLinux 8, CloudLinux 7, CloudLinux 8, openEuler 20.03, openEuler 22.03...\n"
21+
echo -e "\nCyberPanel is supported on x86_64 based Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, Ubuntu 22.04.5, Ubuntu 24.04.3, Ubuntu 25.04, Ubuntu 25.10, CentOS 7, CentOS 8, AlmaLinux 8, RockyLinux 8, CloudLinux 7, CloudLinux 8, openEuler 20.03, openEuler 22.03...\n"
2222
exit
2323
fi
2424

INSTALLER_SUMMARY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ bash <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.5.5-dev/c
9292

9393
## 🔧 **Fixed Issues:**
9494

95-
### **✅ AlmaLinux 9 Support**
95+
### **✅ AlmaLinux 9/10 Support**
9696
- Fixed `aspell` and `libc-client` dependency issues
97-
- Proper package handling for AlmaLinux 9
97+
- Proper package handling for AlmaLinux 9/10
9898
- Smart fallback for missing packages
99+
- Comprehensive AlmaLinux 10 compatibility fixes
99100

100101
### **✅ Modular Architecture**
101102
- Each module under 500 lines (as requested)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Fast • Secure • Scalable — Simplify hosting management with style.
7070

7171
| OS family | Recommended / Supported |
7272
| -------------------------- | ----------------------: |
73-
| Ubuntu 24.04, 22.04, 20.04 | ✅ Recommended |
73+
| Ubuntu 25.10, 25.04, 24.04.3, 24.04, 22.04.5, 22.04, 20.04 | ✅ Recommended |
7474
| Debian 13, 12, 11 | ✅ Supported |
7575
| AlmaLinux 10, 9, 8 | ✅ Supported |
7676
| RockyLinux 9, 8 | ✅ Supported |

cyberpanel.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ detect_os() {
8686
OS_FAMILY="rhel"
8787
PACKAGE_MANAGER="dnf"
8888
print_status "Detected: AlmaLinux 9"
89+
elif echo $OUTPUT | grep -q "AlmaLinux 10" ; then
90+
SERVER_OS="AlmaLinux10"
91+
OS_FAMILY="rhel"
92+
PACKAGE_MANAGER="dnf"
93+
print_status "Detected: AlmaLinux 10"
8994
elif echo $OUTPUT | grep -q "AlmaLinux 8" ; then
9095
SERVER_OS="AlmaLinux8"
9196
OS_FAMILY="rhel"
@@ -111,6 +116,26 @@ detect_os() {
111116
OS_FAMILY="rhel"
112117
PACKAGE_MANAGER="yum"
113118
print_status "Detected: Rocky Linux 8"
119+
elif echo $OUTPUT | grep -q "Ubuntu 25.10" ; then
120+
SERVER_OS="Ubuntu2510"
121+
OS_FAMILY="debian"
122+
PACKAGE_MANAGER="apt"
123+
print_status "Detected: Ubuntu 25.10"
124+
elif echo $OUTPUT | grep -q "Ubuntu 25.04" ; then
125+
SERVER_OS="Ubuntu2504"
126+
OS_FAMILY="debian"
127+
PACKAGE_MANAGER="apt"
128+
print_status "Detected: Ubuntu 25.04"
129+
elif echo $OUTPUT | grep -q "Ubuntu 24.04.3" ; then
130+
SERVER_OS="Ubuntu24043"
131+
OS_FAMILY="debian"
132+
PACKAGE_MANAGER="apt"
133+
print_status "Detected: Ubuntu 24.04.3"
134+
elif echo $OUTPUT | grep -q "Ubuntu 22.04.5" ; then
135+
SERVER_OS="Ubuntu22045"
136+
OS_FAMILY="debian"
137+
PACKAGE_MANAGER="apt"
138+
print_status "Detected: Ubuntu 22.04.5"
114139
elif echo $OUTPUT | grep -q "Ubuntu 22.04" ; then
115140
SERVER_OS="Ubuntu2204"
116141
OS_FAMILY="debian"
@@ -133,7 +158,7 @@ detect_os() {
133158
print_status "Detected: Debian GNU/Linux 11"
134159
else
135160
print_status "ERROR: Unsupported OS detected"
136-
print_status "Supported OS: AlmaLinux 8/9, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04, Debian 11/12"
161+
print_status "Supported OS: AlmaLinux 8/9/10, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04/22.04.5/24.04.3/25.04/25.10, Debian 11/12"
137162
return 1
138163
fi
139164

cyberpanel_clean.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ detect_os() {
7878
OS_FAMILY="rhel"
7979
PACKAGE_MANAGER="dnf"
8080
print_status "Detected: AlmaLinux 9"
81+
elif echo $OUTPUT | grep -q "AlmaLinux 10" ; then
82+
SERVER_OS="AlmaLinux10"
83+
OS_FAMILY="rhel"
84+
PACKAGE_MANAGER="dnf"
85+
print_status "Detected: AlmaLinux 10"
8186
elif echo $OUTPUT | grep -q "AlmaLinux 8" ; then
8287
SERVER_OS="AlmaLinux8"
8388
OS_FAMILY="rhel"
@@ -103,6 +108,26 @@ detect_os() {
103108
OS_FAMILY="rhel"
104109
PACKAGE_MANAGER="yum"
105110
print_status "Detected: Rocky Linux 8"
111+
elif echo $OUTPUT | grep -q "Ubuntu 25.10" ; then
112+
SERVER_OS="Ubuntu2510"
113+
OS_FAMILY="debian"
114+
PACKAGE_MANAGER="apt"
115+
print_status "Detected: Ubuntu 25.10"
116+
elif echo $OUTPUT | grep -q "Ubuntu 25.04" ; then
117+
SERVER_OS="Ubuntu2504"
118+
OS_FAMILY="debian"
119+
PACKAGE_MANAGER="apt"
120+
print_status "Detected: Ubuntu 25.04"
121+
elif echo $OUTPUT | grep -q "Ubuntu 24.04.3" ; then
122+
SERVER_OS="Ubuntu24043"
123+
OS_FAMILY="debian"
124+
PACKAGE_MANAGER="apt"
125+
print_status "Detected: Ubuntu 24.04.3"
126+
elif echo $OUTPUT | grep -q "Ubuntu 22.04.5" ; then
127+
SERVER_OS="Ubuntu22045"
128+
OS_FAMILY="debian"
129+
PACKAGE_MANAGER="apt"
130+
print_status "Detected: Ubuntu 22.04.5"
106131
elif echo $OUTPUT | grep -q "Ubuntu 22.04" ; then
107132
SERVER_OS="Ubuntu2204"
108133
OS_FAMILY="debian"
@@ -125,7 +150,7 @@ detect_os() {
125150
print_status "Detected: Debian GNU/Linux 11"
126151
else
127152
print_status "ERROR: Unsupported OS detected"
128-
print_status "Supported OS: AlmaLinux 8/9, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04, Debian 11/12"
153+
print_status "Supported OS: AlmaLinux 8/9/10, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04/22.04.5/24.04.3/25.04/25.10, Debian 11/12"
129154
return 1
130155
fi
131156

cyberpanel_complete.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ detect_os() {
9090
OS_FAMILY="rhel"
9191
PACKAGE_MANAGER="dnf"
9292
print_status "$GREEN" "Detected: AlmaLinux 9"
93+
elif echo $OUTPUT | grep -q "AlmaLinux 10" ; then
94+
SERVER_OS="AlmaLinux10"
95+
OS_FAMILY="rhel"
96+
PACKAGE_MANAGER="dnf"
97+
print_status "$GREEN" "Detected: AlmaLinux 10"
9398
elif echo $OUTPUT | grep -q "AlmaLinux 8" ; then
9499
SERVER_OS="AlmaLinux8"
95100
OS_FAMILY="rhel"
@@ -115,6 +120,26 @@ detect_os() {
115120
OS_FAMILY="rhel"
116121
PACKAGE_MANAGER="yum"
117122
print_status "$GREEN" "Detected: Rocky Linux 8"
123+
elif echo $OUTPUT | grep -q "Ubuntu 25.10" ; then
124+
SERVER_OS="Ubuntu2510"
125+
OS_FAMILY="debian"
126+
PACKAGE_MANAGER="apt"
127+
print_status "$GREEN" "Detected: Ubuntu 25.10"
128+
elif echo $OUTPUT | grep -q "Ubuntu 25.04" ; then
129+
SERVER_OS="Ubuntu2504"
130+
OS_FAMILY="debian"
131+
PACKAGE_MANAGER="apt"
132+
print_status "$GREEN" "Detected: Ubuntu 25.04"
133+
elif echo $OUTPUT | grep -q "Ubuntu 24.04.3" ; then
134+
SERVER_OS="Ubuntu24043"
135+
OS_FAMILY="debian"
136+
PACKAGE_MANAGER="apt"
137+
print_status "$GREEN" "Detected: Ubuntu 24.04.3"
138+
elif echo $OUTPUT | grep -q "Ubuntu 22.04.5" ; then
139+
SERVER_OS="Ubuntu22045"
140+
OS_FAMILY="debian"
141+
PACKAGE_MANAGER="apt"
142+
print_status "$GREEN" "Detected: Ubuntu 22.04.5"
118143
elif echo $OUTPUT | grep -q "Ubuntu 22.04" ; then
119144
SERVER_OS="Ubuntu2204"
120145
OS_FAMILY="debian"
@@ -137,7 +162,7 @@ detect_os() {
137162
print_status "$GREEN" "Detected: Debian GNU/Linux 11"
138163
else
139164
print_status "$RED" "❌ Unsupported OS detected"
140-
print_status "$YELLOW" "Supported OS: AlmaLinux 8/9, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04, Debian 11/12"
165+
print_status "$YELLOW" "Supported OS: AlmaLinux 8/9/10, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04/22.04.5/24.04.3/25.04/25.10, Debian 11/12"
141166
return 1
142167
fi
143168

cyberpanel_simple.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ detect_os() {
7676
OS_FAMILY="rhel"
7777
PACKAGE_MANAGER="dnf"
7878
print_status "Detected: AlmaLinux 9"
79+
elif echo $OUTPUT | grep -q "AlmaLinux 10" ; then
80+
SERVER_OS="AlmaLinux10"
81+
OS_FAMILY="rhel"
82+
PACKAGE_MANAGER="dnf"
83+
print_status "Detected: AlmaLinux 10"
7984
elif echo $OUTPUT | grep -q "AlmaLinux 8" ; then
8085
SERVER_OS="AlmaLinux8"
8186
OS_FAMILY="rhel"
@@ -101,6 +106,26 @@ detect_os() {
101106
OS_FAMILY="rhel"
102107
PACKAGE_MANAGER="yum"
103108
print_status "Detected: Rocky Linux 8"
109+
elif echo $OUTPUT | grep -q "Ubuntu 25.10" ; then
110+
SERVER_OS="Ubuntu2510"
111+
OS_FAMILY="debian"
112+
PACKAGE_MANAGER="apt"
113+
print_status "Detected: Ubuntu 25.10"
114+
elif echo $OUTPUT | grep -q "Ubuntu 25.04" ; then
115+
SERVER_OS="Ubuntu2504"
116+
OS_FAMILY="debian"
117+
PACKAGE_MANAGER="apt"
118+
print_status "Detected: Ubuntu 25.04"
119+
elif echo $OUTPUT | grep -q "Ubuntu 24.04.3" ; then
120+
SERVER_OS="Ubuntu24043"
121+
OS_FAMILY="debian"
122+
PACKAGE_MANAGER="apt"
123+
print_status "Detected: Ubuntu 24.04.3"
124+
elif echo $OUTPUT | grep -q "Ubuntu 22.04.5" ; then
125+
SERVER_OS="Ubuntu22045"
126+
OS_FAMILY="debian"
127+
PACKAGE_MANAGER="apt"
128+
print_status "Detected: Ubuntu 22.04.5"
104129
elif echo $OUTPUT | grep -q "Ubuntu 22.04" ; then
105130
SERVER_OS="Ubuntu2204"
106131
OS_FAMILY="debian"
@@ -123,7 +148,7 @@ detect_os() {
123148
print_status "Detected: Debian GNU/Linux 11"
124149
else
125150
print_status "ERROR: Unsupported OS detected"
126-
print_status "Supported OS: AlmaLinux 8/9, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04, Debian 11/12"
151+
print_status "Supported OS: AlmaLinux 8/9/10, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04/22.04.5/24.04.3/25.04/25.10, Debian 11/12"
127152
return 1
128153
fi
129154

cyberpanel_standalone.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ detect_os() {
8989
OS_FAMILY="rhel"
9090
PACKAGE_MANAGER="dnf"
9191
print_status "$GREEN" "Detected: AlmaLinux 9"
92+
elif echo $OUTPUT | grep -q "AlmaLinux 10" ; then
93+
SERVER_OS="AlmaLinux10"
94+
OS_FAMILY="rhel"
95+
PACKAGE_MANAGER="dnf"
96+
print_status "$GREEN" "Detected: AlmaLinux 10"
9297
elif echo $OUTPUT | grep -q "AlmaLinux 8" ; then
9398
SERVER_OS="AlmaLinux8"
9499
OS_FAMILY="rhel"
@@ -114,6 +119,26 @@ detect_os() {
114119
OS_FAMILY="rhel"
115120
PACKAGE_MANAGER="yum"
116121
print_status "$GREEN" "Detected: Rocky Linux 8"
122+
elif echo $OUTPUT | grep -q "Ubuntu 25.10" ; then
123+
SERVER_OS="Ubuntu2510"
124+
OS_FAMILY="debian"
125+
PACKAGE_MANAGER="apt"
126+
print_status "$GREEN" "Detected: Ubuntu 25.10"
127+
elif echo $OUTPUT | grep -q "Ubuntu 25.04" ; then
128+
SERVER_OS="Ubuntu2504"
129+
OS_FAMILY="debian"
130+
PACKAGE_MANAGER="apt"
131+
print_status "$GREEN" "Detected: Ubuntu 25.04"
132+
elif echo $OUTPUT | grep -q "Ubuntu 24.04.3" ; then
133+
SERVER_OS="Ubuntu24043"
134+
OS_FAMILY="debian"
135+
PACKAGE_MANAGER="apt"
136+
print_status "$GREEN" "Detected: Ubuntu 24.04.3"
137+
elif echo $OUTPUT | grep -q "Ubuntu 22.04.5" ; then
138+
SERVER_OS="Ubuntu22045"
139+
OS_FAMILY="debian"
140+
PACKAGE_MANAGER="apt"
141+
print_status "$GREEN" "Detected: Ubuntu 22.04.5"
117142
elif echo $OUTPUT | grep -q "Ubuntu 22.04" ; then
118143
SERVER_OS="Ubuntu2204"
119144
OS_FAMILY="debian"
@@ -136,7 +161,7 @@ detect_os() {
136161
print_status "$GREEN" "Detected: Debian GNU/Linux 11"
137162
else
138163
print_status "$RED" "❌ Unsupported OS detected"
139-
print_status "$YELLOW" "Supported OS: AlmaLinux 8/9, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04, Debian 11/12"
164+
print_status "$YELLOW" "Supported OS: AlmaLinux 8/9/10, CentOS 8/9, Rocky Linux 8/9, Ubuntu 20.04/22.04/22.04.5/24.04.3/25.04/25.10, Debian 11/12"
140165
return 1
141166
fi
142167

0 commit comments

Comments
 (0)