* Use mwxec_bg

* Surround parms with "
This commit is contained in:
Scott Ullrich 2005-04-19 22:58:15 +00:00
parent 6aada4eda1
commit bb76326d20

View File

@ -229,8 +229,12 @@ if($use_old_checkversion == false) {
exit;
} else {
touch("/tmp/auto_upgrade_in_progress");
exec_rc_script_async("/etc/rc.firmware_auto {$firmwareurl} {$firmwarename} {$http_auth_username} {$http_auth_password}");
mwexec_bg("/etc/rc.firmware_auto \"{$firmwareurl}\" \"{$firmwarename}\" \"{$http_auth_username}\" \"{$http_auth_password}\"");
$update_status = "pfSense is now auto upgrading. The firewall will automatically reboot if it succeeds.";
update_status("pfSense is now upgrading. The firewall will reboot once the operation has completed.");
echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';\n</script>";
exit;
}
} elseif($versions == "") {
update_output_window("Using old checkversion method. You are running the latest version of pfSense.");
@ -240,7 +244,7 @@ if($use_old_checkversion == false) {
update_output_window("Using old checkversion method. An unknown error occurred.");
}
}
update_status("pfSense is now upgrading. The firewall will reboot once the operation has completed.");
echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';\n</script>";
?>
?>