feature: Added app_state support for applications #5068 (#6061)

* feature: Added app_state support for applications #5068

* moved schema file 173 -> 174

* Re-arrange code

* added device_id to dbUpdate call

* updated function + missing apps

* Rename 174.sql to 176.sql

* Remove $device, it is unneeded when updating.  Rename update_applications() -> update_application()

* Some apps can return simply 0
This commit is contained in:
Neil Lathwood
2017-03-11 14:39:32 +00:00
committed by Tony Murray
parent af752afb18
commit 66d1006d91
37 changed files with 73 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ if (isset($config['enable_proxmox']) && $config['enable_proxmox'] && !empty($age
}
if ($proxmox) {
update_application($app, $proxmox);
$pmxlines = explode("\n", $proxmox);
$pmxcluster = array_shift($pmxlines);
dbUpdate(