From c24d34ee234f53d83b90613588ddfb0be3a695be Mon Sep 17 00:00:00 2001 From: dragondaddy Date: Thu, 10 Aug 2023 01:24:49 +0200 Subject: [PATCH] Composer finally working. Phew. --- scripts/install | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index c615bb1..b9e1c04 100755 --- a/scripts/install +++ b/scripts/install @@ -48,10 +48,13 @@ cp -R $install_dir/app/dist/* $install_dir/public/ ynh_script_progression --message="Pulling in external libraries with Composer..." -pushd $install_dir/api - export COMPOSER_HOME=$install_dir/api - /usr/bin/php$phpversion bin/composer install -popd +#pushd $install_dir/api +# export COMPOSER_ALLOW_SUPERUSER=1 +# export COMPOSER_HOME=$install_dir/api +# sudo -u $app /usr/bin/php$phpversion bin/composer install +#popd + + ynh_install_composer -c "2.4.2" -w $install_dir/api/ chown -R $app:www-data "$install_dir"