summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-12-13 14:19:23 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-12-13 20:33:14 +0100
commitab84872203138047b661858ad15234648a323e16 (patch)
tree747b0a980f841fb577fc612bdb37d9478dd7476b /admin/WebConsole/comandos
parent0fe16f0ab321778236cf8883015b9517a9442577 (diff)
#915 Fix EliminarImagenCache command on the WebConsole
Carmelo reports that EliminarImagenCache (Delete image from cache) command does not work. The image remains in place after the execution of the command. This command is actually a wrapper of the command EjecutarScript (POST /shell) with a different ID. Since gestor_Comandos.php did not expect a different ID, EliminarImagenCache did not work. This commit changes the behaviour of gestor_Comandos.php to handle the EliminarImagenCache ID and treat it as EjecutarScript.
Diffstat (limited to 'admin/WebConsole/comandos')
-rw-r--r--admin/WebConsole/comandos/gestores/gestor_Comandos.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php
index b0780f1f..d7704509 100644
--- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php
+++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php
@@ -29,6 +29,7 @@ define('OG_CMD_ID_SOFTWARE', 7);
define("OG_CMD_ID_SCRIPT", 8);
define('OG_CMD_ID_SESSION', 9);
define('OG_CMD_ID_SETUP', 10);
+define('OG_CMD_ID_DELETE_CACHED_IMAGE', 11);
define('OG_CMD_ID_CREATE_BASIC_IMAGE', 12);
define('OG_CMD_ID_RESTORE_BASIC_IMAGE', 13);
define('OG_CMD_ID_CREATE_INCREMENTAL_IMAGE', 14);
@@ -78,6 +79,7 @@ function run_command($idcomando, $cadenaip, $cadenamac, $atributos) {
software($cadenaip, $atributos);
break;
case OG_CMD_ID_SCRIPT:
+ case OG_CMD_ID_DELETE_CACHED_IMAGE:
shell(3, $cadenaip, $atributos);
break;
}