mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
fix parameter for webgui restart delay
This commit is contained in:
parent
98f2edacb4
commit
fe4566b001
@ -7,9 +7,9 @@ require_once('shaper.inc');
|
||||
require_once('captiveportal.inc');
|
||||
require_once('rrd.inc');
|
||||
|
||||
if (count($argv) > 1 && $argv[1] == 'delayed') {
|
||||
if (count($argv) > 1 && is_numeric($argv[1])) {
|
||||
// starting delayed.
|
||||
sleep(2);
|
||||
sleep($argv[1]);
|
||||
}
|
||||
|
||||
echo 'Restarting webConfigurator...';
|
||||
|
||||
@ -160,7 +160,7 @@ if ($_POST['resetlogs'] == gettext("Reset Log Files")) {
|
||||
ob_flush();
|
||||
flush();
|
||||
log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
|
||||
configd_run("webgui restart delayed", true);
|
||||
configd_run("webgui restart 2", true);
|
||||
$savemsg .= "<br />" . gettext("WebGUI process is restarting.");
|
||||
}
|
||||
|
||||
|
||||
@ -615,7 +615,7 @@ if ($restart_webgui) {
|
||||
ob_flush();
|
||||
flush();
|
||||
log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
|
||||
configd_run("webgui restart delayed", true);
|
||||
configd_run("webgui restart 2", true);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user