X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=install.sh;h=87d53bf09e7f3b4a822c7492cf75c6ce06c62704;hb=24add95e9eaa1211655aff6d3d06c30e94252bcc;hp=414f73f273f8df6b5ed2b02db3fb8405ff8c6345;hpb=f49d9ca383c9f8a1bc426cfabf6b1cea53ea26b4;p=github%2Fwallabag%2Fwallabag.git diff --git a/install.sh b/install.sh index 414f73f2..87d53bf0 100755 --- a/install.sh +++ b/install.sh @@ -1,29 +1,13 @@ #! /usr/bin/env bash -if [[ $ASSETS == 'nobuild' ]]; then - composer install --no-interaction --no-progress --prefer-dist -o -else +echo " > Installing PHP dependencies through Composer..." +composer install --no-interaction --no-progress --prefer-dist -o --no-dev - 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 +chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm +echo " > Downloading librairies through npm..." +vendor/mouf/nodejs-installer/bin/local/npm install - chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm - echo "Downloading javascript librairies through npm..." - vendor/mouf/nodejs-installer/bin/local/npm install +echo " > Concat, minify and installing assets..." +node_modules/grunt/bin/grunt - echo "Downloading fonts librairies through bower..." - node_modules/bower/bin/bower install - - 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 - -fi +echo " > Install finished"