Updates debian packagin for new file placement
ogboot/pipeline/head This commit looks good Details

main
Nicolas Arenas 2025-03-26 11:43:43 +01:00
parent b9e200a391
commit 3d8f0c967d
3 changed files with 10 additions and 21 deletions

1
debian/ogboot.dirs vendored
View File

@ -1,2 +1,3 @@
/opt/opengnsys/ogboot/client_log
/opt/opengnsys/ogboot/mnt
/opt/opengnsys/ogboot/tftpboot

15
debian/ogboot.install vendored
View File

@ -1,16 +1,7 @@
bin /opt/opengnsys/ogboot
config /opt/opengnsys/ogboot/
doc /opt/opengnsys/ogboot/
docs /opt/opengnsys/ogboot/
api /opt/opengnsys/ogboot/api
etc /opt/opengnsys/ogboot
lib /opt/opengnsys/ogboot
public /opt/opengnsys/ogboot/
src /opt/opengnsys/ogboot/
templates /opt/opengnsys/ogboot/
tftpboot /opt/opengnsys/ogboot/
var /opt/opengnsys/ogboot/
vendor /opt/opengnsys/ogboot/
composer.json /opt/opengnsys/ogboot/
composer.lock /opt/opengnsys/ogboot/
.env.local.php /opt/opengnsys/ogboot/

15
debian/rules vendored
View File

@ -5,12 +5,9 @@
# Ejecutar composer install durante la fase de construcción
override_dh_auto_build:
export COMPOSER_ALLOW_SUPERUSER=1
export APP_ENV=prod
dh_auto_build
rm -rf var/cache/*
mkdir -p public
composer install --no-interaction --no-progress --optimize-autoloader
composer dump-env prod
composer update doctrine/dbal
cd api/; \
rm -rf var/cache/*; \
mkdir -p public; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer install --no-interaction --no-progress --optimize-autoloader; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer dump-env prod; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update doctrine/dbal;