mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-28 18:29:05 +01:00
Fix pluginInstaller encoding issues and installation timing
- Add UTF-8 encoding to all file operations in pluginInstaller - Fix ASCII codec error in removeFromSettings and removeFromURLs - Add 2 second delay after installation to allow filesystem sync - Fix fileinput.input encoding issue in removeFromURLs - Update uninstall confirmation message to warn about data deletion - Fixes plugin installation and uninstallation from store
This commit is contained in:
@@ -715,6 +715,10 @@ def install_from_store(request, plugin_name):
|
||||
# Install using pluginInstaller (direct call, not via command line)
|
||||
pluginInstaller.installPlugin(plugin_name)
|
||||
|
||||
# Wait a moment for file system to sync and service to restart
|
||||
import time
|
||||
time.sleep(2)
|
||||
|
||||
# Verify plugin was actually installed
|
||||
pluginInstalled = '/usr/local/CyberCP/' + plugin_name
|
||||
if not os.path.exists(pluginInstalled):
|
||||
|
||||
Reference in New Issue
Block a user