X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=install.sh;h=a486e8a5b565ec0c70da7e8e83365aa1f9722a49;hb=78d5da87fa19e9d385514f6ee5ec68f475f4e56d;hp=414f73f273f8df6b5ed2b02db3fb8405ff8c6345;hpb=f49d9ca383c9f8a1bc426cfabf6b1cea53ea26b4;p=github%2Fwallabag%2Fwallabag.git diff --git a/install.sh b/install.sh index 414f73f2..a486e8a5 100755 --- a/install.sh +++ b/install.sh @@ -1,15 +1,8 @@ #! /usr/bin/env bash -if [[ $ASSETS == 'nobuild' ]]; then - composer install --no-interaction --no-progress --prefer-dist -o -else - +if [[ $ASSETS == 'build' ]]; then echo "Installing PHP dependencies through Composer..." - if [[ $ASSETS == 'build' ]]; then - composer install --no-interaction --no-progress --prefer-dist -o - else - SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist - fi + composer install --no-interaction --no-progress --prefer-dist -o chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm echo "Downloading javascript librairies through npm..." @@ -20,10 +13,6 @@ else echo "Concat, minify and installing assets..." node_modules/grunt/bin/grunt - - if [[ $ASSETS != 'build' ]]; then - echo "Installing wallabag..." - php bin/console wallabag:install --env=prod - fi - +else + composer install --no-interaction --no-progress --prefer-dist -o fi