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:
master3395
2026-01-20 00:47:49 +01:00
parent fa6ce67f24
commit f2acb8bbfc

View File

@@ -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):