X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=install.sh;h=29b343b2954ab66135db427124eff3033e15cc31;hb=49f25d6ee820619a15851b12a33667d707e4edf7;hp=414f73f273f8df6b5ed2b02db3fb8405ff8c6345;hpb=0faeabefa7faedb3a6a3675a5e49e947554adae9;p=github%2Fwallabag%2Fwallabag.git diff --git a/install.sh b/install.sh index 414f73f2..29b343b2 100755 --- a/install.sh +++ b/install.sh @@ -1,29 +1,15 @@ #! /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..." + echo "Downloading librairies through npm..." vendor/mouf/nodejs-installer/bin/local/npm install - 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 - +else + composer install --no-interaction --no-progress --prefer-dist -o fi