From 0d18d77c22e2fb6ab270da7530dfd5de4415f362 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Fri, 26 Sep 2025 10:22:43 +0200 Subject: [PATCH] Clean cache in upgrade --- debian/ogcore.postinst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/ogcore.postinst b/debian/ogcore.postinst index d8d42dc..53baf13 100644 --- a/debian/ogcore.postinst +++ b/debian/ogcore.postinst @@ -140,6 +140,7 @@ elif [ "$1" = "configure" ] && [ -n "$2" ]; then cd /opt/opengnsys/ogcore/api echo ">>> Aplicando migraciones de base de datos" php bin/console doctrine:migrations:migrate --no-interaction + php bin/console cache:clear echo ">>> Configurando servidor web y servicios" [ ! -L /etc/nginx/sites-enabled/ogcore.conf ] && ln -s /opt/opengnsys/ogcore/etc/nginx/sites-available/ogcore.conf /etc/nginx/sites-enabled/ogcore.conf [ ! -L /etc/php/8.3/fpm/pool.d/ogcore-fpm.conf ] && ln -s /opt/opengnsys/ogcore/etc/php/8.3/fpm/pool.d/ogcore-fpm.conf /etc/php/8.3/fpm/pool.d/ogcore-fpm.conf @@ -158,12 +159,10 @@ elif [ "$1" = "configure" ] && [ -n "$2" ]; then chown root:root /etc/cron.d/opengnsys-check-clients fi systemctl daemon-reload - systemctl enable og-mercure systemctl restart og-mercure - systemctl restart nginx systemctl restart php8.3-fpm + systemctl restart nginx fi # Recargar systemd y reiniciar servicios en ambos casos - exit 0 -- 2.40.1