aboutsummaryrefslogtreecommitdiffhomepage
path: root/install.sh
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-11 12:52:42 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-11 12:52:42 +0200
commit04d5c60216eb4577fbf9846d10862a332d7656fd (patch)
tree4fb18105a846e64717b5826888f7a30acc6c8b59 /install.sh
parent40c47f7023577d410818569b3be953c4aa2604cc (diff)
downloadwallabag-04d5c60216eb4577fbf9846d10862a332d7656fd.tar.gz
wallabag-04d5c60216eb4577fbf9846d10862a332d7656fd.tar.zst
wallabag-04d5c60216eb4577fbf9846d10862a332d7656fd.zip
Update install.sh
Since $ASSETS can be empty now and only be “build”.
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh19
1 files 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 @@
1#! /usr/bin/env bash 1#! /usr/bin/env bash
2 2
3if [[ $ASSETS == 'nobuild' ]]; then 3if [[ $ASSETS == 'build' ]]; then
4 composer install --no-interaction --no-progress --prefer-dist -o
5else
6
7 echo "Installing PHP dependencies through Composer..." 4 echo "Installing PHP dependencies through Composer..."
8 if [[ $ASSETS == 'build' ]]; then 5 composer install --no-interaction --no-progress --prefer-dist -o
9 composer install --no-interaction --no-progress --prefer-dist -o
10 else
11 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
12 fi
13 6
14 chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm 7 chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
15 echo "Downloading javascript librairies through npm..." 8 echo "Downloading javascript librairies through npm..."
@@ -20,10 +13,6 @@ else
20 13
21 echo "Concat, minify and installing assets..." 14 echo "Concat, minify and installing assets..."
22 node_modules/grunt/bin/grunt 15 node_modules/grunt/bin/grunt
23 16else
24 if [[ $ASSETS != 'build' ]]; then 17 composer install --no-interaction --no-progress --prefer-dist -o
25 echo "Installing wallabag..."
26 php bin/console wallabag:install --env=prod
27 fi
28
29fi 18fi