From d540b24c8f4d620fb78c4dc46c832b5be6c11bd7 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Fri, 10 Oct 2025 00:09:42 +0500 Subject: [PATCH] bug fix: alma8 install --- install/installCyberPanel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 6f39a6788..fcc9538fa 100644 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -996,9 +996,11 @@ def Main(cwd, mysql, distro, ent, serial=None, port="8090", ftp=None, dns=None, except: pass - if distro == centos: + # For RHEL-based systems (CentOS, AlmaLinux, Rocky, etc.), generate a separate password + if distro in [centos, cent8, openeuler]: InstallCyberPanel.mysqlPassword = install_utils.generate_pass() else: + # For Ubuntu/Debian, use the same password as root InstallCyberPanel.mysqlPassword = InstallCyberPanel.mysql_Root_password installer = InstallCyberPanel("/usr/local/lsws/", cwd, distro, ent, serial, port, ftp, dns, publicip, remotemysql,