refs #505 adds dbal update in symfony packages

ogboot_installer
Luis Gerardo Romero Garcia 2024-07-29 17:21:27 +02:00
parent 8dd7bb79e0
commit a3339efca7
1 changed files with 5 additions and 0 deletions

View File

@ -355,6 +355,11 @@ def og_boot_composer_install():
logger.error("Error creating Symfony project using Composer")
return
# Ejecutar Composer como el usuario 'ogboot' para actualizar el paquete doctrine/dbal
result = subprocess.run(["sudo", "-u", "ogboot", "/opt/ogboot/bin/composer.phar", "update", "doctrine/dbal", "--working-dir", INSTALL_OGBOOT_TARGET])
if result.returncode != 0:
logger.error("Error updating doctrine/dbal package using Composer")
return
# Eliminar composer.lock si existe
composer_lock_path = os.path.join(INSTALL_OGBOOT_TARGET, "composer.lock")
if os.path.exists(composer_lock_path):