summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-10-10 18:38:59 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-11 11:57:08 +0200
commit0ff87c2b7b3e37ca9ff5f72e74a20d0019ad5e87 (patch)
tree090dbeb68f2be6e5291665b256f8ce62522a3313 /admin/WebConsole/comandos
parent55adaee1d8dccee067f2e1fd7bf1d7e299e1e388 (diff)
#915 Adapt web to use new image/restore/incremental cmd in REST API
SocketHidra command has been replaced by POST image/restore/incremental.
Diffstat (limited to 'admin/WebConsole/comandos')
-rw-r--r--admin/WebConsole/comandos/gestores/gestor_Comandos.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php
index 70b3019d..150fde69 100644
--- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php
+++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php
@@ -34,6 +34,7 @@ define('OG_CMD_ID_SETUP', 10);
define('OG_CMD_ID_CREATE_BASIC_IMAGE', 12);
define('OG_CMD_ID_RESTORE_BASIC_IMAGE', 13);
define('OG_CMD_ID_CREATE_INCREMENTAL_IMAGE', 14);
+define('OG_CMD_ID_RESTORE_INCREMENTAL_IMAGE', 15);
define('OG_CMD_ID_SENDMESSAGE', 16);
// Recoge parametros de seguimiento
@@ -150,6 +151,9 @@ switch ($idcomando) {
case OG_CMD_ID_RESTORE_BASIC_IMAGE:
restore_basic_image($cadenaip, $atributos);
break;
+ case OG_CMD_ID_RESTORE_INCREMENTAL_IMAGE:
+ restore_incremental_image($cadenaip, $atributos);
+ break;
case OG_CMD_ID_POWEROFF:
poweroff($cadenaip);
break;
@@ -232,6 +236,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){
$idcomando != OG_CMD_ID_CREATE_BASIC_IMAGE &&
$idcomando != OG_CMD_ID_CREATE_INCREMENTAL_IMAGE &&
$idcomando != OG_CMD_ID_RESTORE_BASIC_IMAGE &&
+ $idcomando != OG_CMD_ID_RESTORE_INCREMENTAL_IMAGE &&
$idcomando != OG_CMD_ID_POWEROFF &&
$idcomando != OG_CMD_ID_HARDWARE &&
$idcomando != OG_CMD_ID_SOFTWARE &&