From acf1ba0087890eba2a4c7bab5609e4f6d00d2ebf Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 5 Oct 2017 08:55:48 +0200 Subject: [PATCH] Add SKIP_COMPOSER flag --- scripts/start.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index 065e042..83320d1 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -189,14 +189,16 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then fi fi -# Try auto install for composer -if [ -f "/var/www/html/composer.lock" ]; then - if [ "$APPLICATION_ENV" == "development" ]; then - composer global require hirak/prestissimo - composer install --working-dir=/var/www/html - else - composer global require hirak/prestissimo - composer install --no-dev --working-dir=/var/www/html +if [ -z "$SKIP_COMPOSER" ]; then + # Try auto install for composer + if [ -f "/var/www/html/composer.lock" ]; then + if [ "$APPLICATION_ENV" == "development" ]; then + composer global require hirak/prestissimo + composer install --working-dir=/var/www/html + else + composer global require hirak/prestissimo + composer install --no-dev --working-dir=/var/www/html + fi fi fi