WIP: upgrade button

This commit is contained in:
olevole
2023-04-12 18:49:37 +03:00
parent 9d509b9150
commit 6339c00deb
2 changed files with 4 additions and 4 deletions

View File

@@ -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']){

View File

@@ -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)
{ {