security/acme-client: sync service start

PR: https://github.com/opnsense/core/issues/1954
This commit is contained in:
Franco Fichtner 2017-11-28 20:48:41 +00:00
parent 75ca6c01f8
commit 670acbe61d
6 changed files with 7 additions and 7 deletions

View file

@ -37,7 +37,6 @@ class AccountsController extends \OPNsense\Base\IndexController
{
public function indexAction()
{
$this->view->title = "Let's Encrypt Accounts";
// include form definitions
$this->view->formDialogAccount = $this->getForm("dialogAccount");
// choose template

View file

@ -37,7 +37,6 @@ class ActionsController extends \OPNsense\Base\IndexController
{
public function indexAction()
{
$this->view->title = "Let's Encrypt Restart Actions";
// include form definitions
$this->view->formDialogAction = $this->getForm("dialogAction");
// choose template

View file

@ -48,8 +48,10 @@ class ServiceController extends ApiControllerBase
public function startAction()
{
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("acmeclient http-start", true);
$response = $backend->configdRun("acmeclient http-start");
return array("response" => $response);
} else {
return array("response" => array());
@ -63,6 +65,8 @@ class ServiceController extends ApiControllerBase
public function stopAction()
{
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("acmeclient http-stop");
return array("response" => $response);
@ -78,6 +82,8 @@ class ServiceController extends ApiControllerBase
public function restartAction()
{
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("acmeclient http-restart");
return array("response" => $response);

View file

@ -37,7 +37,6 @@ class CertificatesController extends \OPNsense\Base\IndexController
{
public function indexAction()
{
$this->view->title = "Let's Encrypt Certificates";
// include form definitions
$this->view->formDialogCertificate = $this->getForm("dialogCertificate");
// choose template

View file

@ -41,8 +41,6 @@ class IndexController extends \OPNsense\Base\IndexController
*/
public function indexAction()
{
// set page title
$this->view->title = "Let's Encrypt Settings";
// include form definitions
$this->view->settingsForm = $this->getForm("settings");
// pick the template to serve

View file

@ -37,7 +37,6 @@ class ValidationsController extends \OPNsense\Base\IndexController
{
public function indexAction()
{
$this->view->title = "Let's Encrypt Domain Validation Methods";
// include form definitions
$this->view->formDialogValidation = $this->getForm("dialogValidation");
// choose template