diff --git a/scripts/_common.sh b/scripts/_common.sh index baab404..fe755ba 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -26,9 +26,6 @@ init_composer() { php -- --quiet --install-dir="$destdir" \ || ynh_die "Unable to install Composer" - # install composer.json - cp "${destdir}/composer.json-dist" "${destdir}/composer.json" - # update dependencies to create composer.lock exec_composer "$destdir" install --no-dev \ || ynh_die "Unable to update Roundcube core dependencies" diff --git a/scripts/install b/scripts/install index 822a3db..9fda0c2 100644 --- a/scripts/install +++ b/scripts/install @@ -122,7 +122,7 @@ ynh_store_file_checksum "$final_path/config.inc.php" init_composer "$final_path" # Install dependencies -exec_composer update --no-dev +exec_composer "$final_path" update --no-dev #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 082d6d1..3bd8553 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -138,7 +138,7 @@ ynh_store_file_checksum "$final_path/config.inc.php" init_composer "$final_path" # Install dependencies -exec_composer update --no-dev +exec_composer "$final_path" update --no-dev #================================================= # GENERIC FINALIZATION