Commit 9a22c04f authored by Ad Schellevis's avatar Ad Schellevis

(legacy) refactor system_advanced_admin.php, move some system calls to backend

parent 7968b548
......@@ -248,17 +248,17 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
if ($restart_sshd) {
killbyname("sshd");
configd_run("sshd stop");
log_error(gettext("secure shell configuration has changed. Stopping sshd."));
if ($config['system']['ssh']['enabled']) {
log_error(gettext("secure shell configuration has changed. Restarting sshd."));
configd_run("sshd restart");
configd_run("sshd restart", true);
}
}
if ($restart_webgui) {
log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
mwexec_bg('/usr/local/etc/rc.restart_webgui 2');
configd_run("webgui restart 2", true);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment