diff --git a/debian/ogboot.dirs b/debian/ogboot.dirs index 5b57388..2a36bb8 100644 --- a/debian/ogboot.dirs +++ b/debian/ogboot.dirs @@ -1,2 +1,3 @@ /opt/opengnsys/ogboot/client_log /opt/opengnsys/ogboot/mnt +/opt/opengnsys/ogboot/tftpboot diff --git a/debian/ogboot.install b/debian/ogboot.install index c0ce578..5cbb6cc 100644 --- a/debian/ogboot.install +++ b/debian/ogboot.install @@ -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/ + + diff --git a/debian/rules b/debian/rules index f484c3c..dfcb3d3 100755 --- a/debian/rules +++ b/debian/rules @@ -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;