Compare commits

...

5 Commits

Author SHA1 Message Date
Manuel Aranda Rosales 84709a7c31 Merge branch 'main' into develop
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2025-10-01 08:22:40 +02:00
Nicolas Arenas 6ed01d6f9d Merge pull request 'Clean cache in upgrade' (#66) from fix_package into main
ogcore-debian-package/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
Reviewed-on: #66
2025-09-26 10:41:05 +02:00
Nicolas Arenas 4fe43d8727 Clean cache in upgrade
testing/ogcore-api/pipeline/pr-main Build started... Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2025-09-26 10:40:26 +02:00
Nicolas Arenas 8fea637440 Merge pull request 'Clean cache in upgrade' (#65) from fix_package into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #65
2025-09-26 10:25:59 +02:00
Nicolas Arenas 0d18d77c22 Clean cache in upgrade
testing/ogcore-api/pipeline/pr-main Build started... Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2025-09-26 10:22:43 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -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
@ -157,13 +158,12 @@ elif [ "$1" = "configure" ] && [ -n "$2" ]; then
chmod 644 /etc/cron.d/opengnsys-check-clients
chown root:root /etc/cron.d/opengnsys-check-clients
fi
systemctl daemon-reload
systemctl enable og-mercure
systemctl daemon-reload
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