From a164806a3d3211eea6f7ef76cfd72316f3c94864 Mon Sep 17 00:00:00 2001 From: jmbardallo Date: Mon, 18 May 2026 14:07:31 +0200 Subject: [PATCH] =?UTF-8?q?Modificada=20acci=C3=B3n=20RemoveCacheImage=20p?= =?UTF-8?q?ara=20montar=20la=20cache=20antes=20de=20intentar=20eliminar=20?= =?UTF-8?q?la=20imagen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ src/Controller/OgAgent/RemoveCacheImageAction.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c677439..f866ca7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [1.8.2] - 2026-05-18 + +### Improved +- Modificada accion RemoveCacheImage para montar la cache y luego eliminar la imagen deseada + ## [1.8.1] - 2026-05-18 ### Fixed diff --git a/src/Controller/OgAgent/RemoveCacheImageAction.php b/src/Controller/OgAgent/RemoveCacheImageAction.php index f8a1cc7..c53b2bb 100644 --- a/src/Controller/OgAgent/RemoveCacheImageAction.php +++ b/src/Controller/OgAgent/RemoveCacheImageAction.php @@ -42,7 +42,7 @@ class RemoveCacheImageAction extends AbstractOgAgentController continue; } - $script = 'rm -r /opt/opengnsys/cache/opt/opengnsys/images/' . escapeshellarg($input->imageName) . '*'; + $script = 'ogMountCache && rm -r /opt/opengnsys/cache/opt/opengnsys/images/' . escapeshellarg($input->imageName) . '*'; $data = [ 'nfn' => 'EjecutarScript', -- 2.40.1