mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
firmware: need to stop backend from going into background mode
This commit is contained in:
parent
63af98ed5b
commit
d55a76b6a5
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user