diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 74d5ef122..e8f6db1a8 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,10 @@
-
+
+
+
+
@@ -36,27 +39,27 @@
- {
+ "keyToString": {
+ "ModuleVcsDetector.initialDetectionPerformed": "true",
+ "Notification.DisplayName-DoNotAsk-DatabaseConfigFileWatcher.found": "Database connection parameters found",
+ "Notification.DoNotAsk-DatabaseConfigFileWatcher.found": "true",
+ "RunOnceActivity.OpenDjangoStructureViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "SHELLCHECK.PATH": "/Users/cyberpersons/Library/Application Support/JetBrains/PyCharm2025.1/plugins/Shell Script/shellcheck",
+ "git-widget-placeholder": "v2.5.5-dev",
+ "last_opened_file_path": "/Users/cyberpersons/cyberpanel",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "settings.editor.selected.configurable": "preferences.pluginManager",
+ "vue.rearranger.settings.migration": "true"
}
-}]]>
+}
@@ -118,6 +121,7 @@
+
diff --git a/install/install.py b/install/install.py
index 6a17b0bb6..680d7b2a9 100644
--- a/install/install.py
+++ b/install/install.py
@@ -2106,6 +2106,9 @@ password="%s"
logging.InstallLog.writeToFile("Generating secure environment configuration!")
+ # Determine the correct MySQL root password to use
+ mysql_root_password = mysqlPassword if self.remotemysql == 'ON' else self.mysql_Root_password
+
# For CentOS, we need to get the actual cyberpanel database password
# which is different from the root password
if self.distro == centos:
@@ -2113,10 +2116,10 @@ password="%s"
self.cyberpanel_db_password = install_utils.generate_pass()
else:
# On Ubuntu/Debian, the cyberpanel password is the same as root password
- self.cyberpanel_db_password = mysqlPassword
+ self.cyberpanel_db_password = mysql_root_password
# Update settings.py with correct passwords (no .env files needed)
- self.update_settings_file(mysqlPassword, self.cyberpanel_db_password, mysql)
+ self.update_settings_file(mysql_root_password, self.cyberpanel_db_password, mysql)
logging.InstallLog.writeToFile("Environment configuration generated successfully!")