mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 00:36:10 +01:00
Add OS detection logic to download correct OpenLiteSpeed binaries based on system type: - Ubuntu/Debian systems: Download binaries with libcrypt.so.1 (GLIBC 2.35) - RHEL/AlmaLinux/Rocky 8+/9+: Download binaries with libcrypt.so.2 (GLIBC 2.34) This fixes the "libcrypt.so.2: cannot open shared object file" error that occurred when Ubuntu systems tried to use RHEL-compiled binaries. Changes: - Added detectBinarySuffix() method to both installCyberPanel.py and upgrade.py - Updated binary URLs to use https://cyberpanel.net with OS-specific suffix - Module URL: cyberpanel_ols_x86_64_{ubuntu|rhel}.so - Binary URL: openlitespeed-phpconfig-x86_64-{ubuntu|rhel} Binary compatibility matrix: - Ubuntu 20.04/22.04/24.04, Debian 10+, CentOS 7 → ubuntu binaries - AlmaLinux 8+/9+, Rocky 8+/9+, RHEL 8+/9+, OpenEuler → rhel binaries
56 KiB
56 KiB