Commit 25272401 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(cherry picked from commit 9a22c04f)
parent 9fb629f6
......@@ -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