mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
security/acme-client: sync service start
PR: https://github.com/opnsense/core/issues/1954
This commit is contained in:
parent
75ca6c01f8
commit
670acbe61d
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue