Commit f36d54d4 authored by Ad Schellevis's avatar Ad Schellevis

(ids) fix reconfigure item

parent f32d92ad
......@@ -131,6 +131,7 @@ class ServiceController extends ApiControllerBase
$bckresult = trim($backend->configdRun("template reload OPNsense.IDS"));
if ($bckresult == "OK") {
if ((string)$mdlIDS->general->enabled == 1) {
$bckresult = trim($backend->configdRun("ids install rules"));
if ($bckresult == "OK") {
if ($runStatus['status'] == 'running') {
......@@ -141,6 +142,9 @@ class ServiceController extends ApiControllerBase
} else {
$status = "error installing ids rules (".$bckresult.")";
}
} else {
$status = "OK";
}
} else {
$status = "error generating ids template (".$bckresult.")";
}
......
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