From 815ea10e5a3a846890a3c340939d5f6b245e30cb Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 1 May 2019 19:38:11 +0530 Subject: [PATCH] Fix composer --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 99d56a8..e33606e 100755 --- a/scripts/install +++ b/scripts/install @@ -161,8 +161,8 @@ ynh_script_progression --message="Configuring php-fpm..." --time --weight=1 # Create a dedicated php-fpm config ynh_add_fpm_config -init_composer "$app" "$final_path" - +( cd $final_path && sudo sudo -u "$app" curl -sS https://getcomposer.org/installer | php ) +( cd $final_path && sudo sudo -u "$app" php composer.phar install --no-dev --prefer-source ) #================================================= # SPECIFIC SETUP