Fix forget WiFi: appel bash explicite + disconnect wlan0 avant delete

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
PaulVua
2026-03-17 17:34:30 +01:00
parent 6e17f39a2c
commit 8d0507852a
2 changed files with 6 additions and 2 deletions

View File

@@ -1172,7 +1172,7 @@ if ($type == "wifi_forget") {
// Launch forget script in background
$script_path = '/var/www/nebuleair_pro_4g/forget_wifi.sh';
$log_file = '/var/www/nebuleair_pro_4g/logs/app.log';
shell_exec("$script_path >> $log_file 2>&1 &");
shell_exec("bash $script_path >> $log_file 2>&1 &");
header('Content-Type: application/json');
echo json_encode([