From 04d5c60216eb4577fbf9846d10862a332d7656fd Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 11 Sep 2016 12:52:42 +0200 Subject: [PATCH] Update install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since $ASSETS can be empty now and only be “build”. --- install.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) 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 -- 2.41.0