Skip to content

Commit

Permalink
security/acme-client: restart webgui the other way; closes opnsense#236
Browse files Browse the repository at this point in the history
(cherry picked from commit 3ca7864)
  • Loading branch information
fichtner committed Aug 29, 2017
1 parent 26f9845 commit fa250a0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
require_once("legacy_bindings.inc");
require_once("interfaces.inc");
require_once("util.inc");
require_once("system.inc"); // required for Web UI restart action
// Some stuff requires the almighty MVC framework.
use OPNsense\Core\Backend;
use OPNsense\Core\Config;
Expand Down Expand Up @@ -1055,7 +1054,7 @@ function run_restart_actions($certlist, $modelObj)
log_error("AcmeClient: running restart action: " . $action->name);
switch ((string)$action->type) {
case 'restart_gui':
$response = system_webgui_configure();
$response = $backend->configdRun('webgui restart 2', true);
break;
case 'restart_haproxy':
$response = $backend->configdRun("haproxy restart");
Expand Down

0 comments on commit fa250a0

Please sign in to comment.