X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=install.sh;h=901b34463bb091245b622752b59fad22fc990302;hb=5334381509990ea5a5351575abf163c3b6c9dc18;hp=414f73f273f8df6b5ed2b02db3fb8405ff8c6345;hpb=cdd3010b478c9ca818dd6d22d03c81ef4a5ab208;p=github%2Fwallabag%2Fwallabag.git diff --git a/install.sh b/install.sh index 414f73f2..901b3446 100755 --- a/install.sh +++ b/install.sh @@ -1,29 +1,6 @@ #! /usr/bin/env bash -if [[ $ASSETS == 'nobuild' ]]; then - composer install --no-interaction --no-progress --prefer-dist -o -else - - 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 javascript 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 - -fi +TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) +git checkout $TAG +SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist +php bin/console wallabag:install --env=prod