firmware: need to stop backend from going into background mode

This commit is contained in:
Franco Fichtner 2021-03-29 14:19:09 +02:00
parent 63af98ed5b
commit d55a76b6a5
2 changed files with 12 additions and 5 deletions

View File

@ -97,7 +97,8 @@ class FirmwareController extends ApiControllerBase
$this->sessionClose(); // long running action, close session
if ($this->request->isPost()) {
$backend->configdRun('firmware check');
/* run a synchronous check prior to the result fetch */
$backend->configdRun('firmware probe');
}
$response = json_decode(trim($backend->configdRun('firmware product')), true);

View File

@ -4,6 +4,12 @@ parameters:
type:script
message:Retrieve firmware update status
[probe]
command:/usr/local/opnsense/scripts/firmware/launcher.sh check
parameters:
type:script
message:Running firmware update status
[changelog.fetch]
command: /usr/local/opnsense/scripts/firmware/changelog.sh fetch
parameters:
@ -21,7 +27,7 @@ message:Removing changelog from local
command: /usr/local/opnsense/scripts/firmware/changelog.sh list
parameters:
type:script_output
message:Retrieving changelog index
message:Retrieve changelog index
[changelog.html]
command: /usr/local/opnsense/scripts/firmware/changelog.sh html
@ -45,19 +51,19 @@ message:Viewing license for %s
command:/usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/launcher.sh security
parameters:
type:script
message:Retrieving vulnerability report
message:Retrieve vulnerability report
[health]
command:/usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/launcher.sh health
parameters:
type:script
message:Retrieving health status
message:Retrieve health status
[connection]
command:/usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/launcher.sh connection
parameters:
type:script
message:Retrieving connectivity status
message:Retrieve connectivity status
[running]
command:/usr/local/opnsense/scripts/firmware/running.sh