cyberpanel/install
usmannasir f7fc75b258 Add binary verification and rollback mechanism for OLS custom binaries
Implement safety checks to verify custom OpenLiteSpeed binaries work before committing to them:

Verification checks:
- Check library dependencies with ldd to detect missing libraries
- Test binary execution with -v flag to ensure it can run
- Detect issues like wrong binary type (ubuntu vs rhel) for the OS

Rollback mechanism:
- Automatically restore original binary from backup if verification fails
- Remove incompatible custom module
- Continue installation with standard OLS if custom binary fails

This prevents installation failures and system downtime when:
- Wrong binary type is downloaded due to OS detection issues
- Library dependencies are missing
- Binary cannot execute on the target system

Changes:
- Added verifyCustomBinary() method to check dependencies and execution
- Added rollbackCustomBinary() method to restore from backup
- Updated installCustomOLSBinaries() to verify and rollback on failure
- Applied to both install/installCyberPanel.py and plogical/upgrade.py

Benefits:
- Zero downtime: System falls back to working binary automatically
- Better error reporting: Shows which libraries are missing
- Safer upgrades: Users won't be left with broken installations
2025-11-07 13:50:47 +05:00
..
dns Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
dns-one Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
email-configs bug fix: postfix conf for ipv6 2025-09-01 00:07:41 +05:00
email-configs-one bug fix: postfix conf for ipv6 2025-09-01 00:07:41 +05:00
gun-configs Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
litespeed Add Almalinux 10 and php 84+85 2025-09-07 22:57:53 +02:00
lscpd Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
mysql Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
php-configs Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
phpconfigs Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
pure-ftpd Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
pure-ftpd-one Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
rainloop Add sieve by default. 2025-09-10 20:01:52 +02:00
CyberPanel8.repo Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
__init__.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
composer.sh Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
composer_cn.sh Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
cyberso.pub Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
dns_cyberpanel.sh Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
env_generator.py bug fix: allowed host issue 2025-09-15 12:07:15 +05:00
filesPermsUtilities.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
filesPermsUtilities.py.bak Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
firewallUtilities.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
install.py bug fix: python 3.6 compatibility 2025-10-10 17:26:50 +05:00
install.py.bak Fix mirror gettoforge 2025-09-12 09:42:52 +02:00
install.xml Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
installCyberPanel.py Add binary verification and rollback mechanism for OLS custom binaries 2025-11-07 13:50:47 +05:00
installLog.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
install_utils.py Add Almalinux 10 and php 84+85 2025-09-07 22:57:53 +02:00
lscp.tar.gz Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
mysqlUtilities.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
postfix-files Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
randomPassword.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
setup_env.py bug fix: allowed host issue 2025-09-15 12:07:15 +05:00
test.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
unInstall.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
venvsetup.sh Fix AlmaLinux 8 installation: Add python-dotenv to requirements (v2.4.4) 2025-10-10 01:00:22 +05:00
venvsetup.sh.bak Fix ALL documentation links. 2025-09-08 11:50:35 +02:00