mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Merge pull request #402 from opnsense/fraenki_acme
security/acme-client: sync service start
This commit is contained in:
-1
@@ -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
|
||||
|
||||
-1
@@ -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
|
||||
|
||||
+7
-1
@@ -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);
|
||||
|
||||
-1
@@ -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
|
||||
|
||||
-2
@@ -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
|
||||
|
||||
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user