From 4afc77df56ac2fd80e02bbf137c258dcb0c6435a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 24 Jul 2020 18:57:36 +0200 Subject: [PATCH] Update install --- scripts/install | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 815e14d..4e17ed9 100644 --- a/scripts/install +++ b/scripts/install @@ -145,9 +145,12 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php" #================================================= pushd "$final_path" || ynh_die - #composer install #--no-interaction --quiet - sudo -u www-data php composer.phar install - sudo -u www-data php composer.phar $app:migrate +export COMPOSER_HOME=$final_path + curl -sS https://getcomposer.org/installer | php -- --install-dir="$final_path" \ + && php composer.phar config --global discard-changes true --quiet \ + && php composer.phar install --no-interaction --quiet + #sudo -u www-data php composer.phar install + #sudo -u www-data php composer.phar $app:migrate popd || ynh_die #=================================================