Merge pull request #402 from opnsense/fraenki_acme

security/acme-client: sync service start
This commit is contained in:
Frank Wall
2017-12-05 14:40:16 +01:00
committed by GitHub
6 changed files with 7 additions and 7 deletions
@@ -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
@@ -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
@@ -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);
@@ -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
@@ -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
@@ -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