Commit 3b420133 authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) hook in config generation

parent 1c178f36
......@@ -52,6 +52,8 @@ class ServiceController extends ApiControllerBase
$backend->configdRun("template reload OPNsense.IPFW");
$bckresult = trim($backend->configdRun("ipfw reload"));
if ($bckresult == "OK") {
// generate captive portal config
$backend->configdRun("template reload OPNsense.Captiveportal");
// TODO: implement portal webservers restart/reconfigure
$status = "ok";
} else {
......
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