mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-10-29 09:02:21 +00:00
WIP: upgrade button
This commit is contained in:
@@ -2171,7 +2171,7 @@ class ClonOS {
|
|||||||
function ccmd_settingsGetList()
|
function ccmd_settingsGetList()
|
||||||
{
|
{
|
||||||
$res=CBSD::run(
|
$res=CBSD::run(
|
||||||
'cix_upgrade mode=listjson',
|
'/root/bin/web_upgrade listjson',
|
||||||
array()
|
array()
|
||||||
);
|
);
|
||||||
if($res['error']){
|
if($res['error']){
|
||||||
@@ -2186,7 +2186,7 @@ class ClonOS {
|
|||||||
function ccmd_settingsUpdateCheck()
|
function ccmd_settingsUpdateCheck()
|
||||||
{
|
{
|
||||||
$res=CBSD::run(
|
$res=CBSD::run(
|
||||||
'cix_upgrade mode=check_upgrade', //listjson
|
'/root/bin/web_upgrade check_upgrade', //listjson
|
||||||
array()
|
array()
|
||||||
);
|
);
|
||||||
if($res['error']){
|
if($res['error']){
|
||||||
@@ -2202,7 +2202,7 @@ class ClonOS {
|
|||||||
function ccmd_settingsUpdateComponents()
|
function ccmd_settingsUpdateComponents()
|
||||||
{
|
{
|
||||||
$res=CBSD::run(
|
$res=CBSD::run(
|
||||||
'cix_upgrade mode=upgrade',
|
'/root/bin/web_upgrade upgrade',
|
||||||
array()
|
array()
|
||||||
);
|
);
|
||||||
if($res['error']){
|
if($res['error']){
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ require_once("../php/cbsd.php");
|
|||||||
$html = '';
|
$html = '';
|
||||||
$hres = $this->getTableChunk('components','tbody');
|
$hres = $this->getTableChunk('components','tbody');
|
||||||
|
|
||||||
$res=CBSD::run('cix_upgrade mode=listjson', array());
|
$res=CBSD::run('/root/bin/web_upgrade listjson', array());
|
||||||
$latest=[];
|
$latest=[];
|
||||||
if($res['retval']==0)
|
if($res['retval']==0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user