fix(ucp,ha): auto-déploiement UCP, check SQLite PDO/SQLite3::backup HA, refresh comptes UCP (v2.5.1)

This commit is contained in:
sorcier committed 2026-11-11 19:31:32 +01:00
1 parent 72e43f1a9a
commit c96af67ac9
11 files changed
+201 -76

No files matched your search

+10 -1
View File
@@ -74,8 +74,17 @@ switch ($cmd) {
echo ($res['success'] ? "\033[32m[OK]\033[0m " : "\033[31m[ERREUR]\033[0m ") . $res['message'] . "\n";
break;
case 'init-ucp':
case 'sync-ucp':
case 'apply':
$settings = FirewallManager::getSettings();
$res = FirewallManager::saveSettings($settings);
@unlink('/tmp/nexus_fw_status_cache.json');
echo ($res['success'] ? "\033[32m[OK]\033[0m " : "\033[31m[ERREUR]\033[0m ") . ($res['message'] ?? '') . "\n";
break;
default:
echo "Usage: nexus-firewall [status|on|off|ban <ip>|unban <ip>]\n";
echo "Usage: nexus-firewall [status|on|off|init-ucp|ban <ip>|unban <ip>]\n";
exit(1);
}