From 56caa8a9d5c0b3fd03afa52ad4fb3f3c5a6e53db Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Thu, 2 Nov 2023 18:01:39 +0100 Subject: [PATCH] Don't use Composer --- scripts/_common.sh | 2 -- scripts/install | 12 ------------ scripts/upgrade | 17 ----------------- 3 files changed, 31 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index bad7a0f..944a65e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,8 +4,6 @@ # COMMON VARIABLES #================================================= -YNH_COMPOSER_VERSION=2.0.14 - #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index e6f730a..bae7950 100644 --- a/scripts/install +++ b/scripts/install @@ -76,18 +76,6 @@ ynh_add_config --template="../conf/config.inc.php" --destination="$install_dir/c chown $app: $install_dir/config.inc.php chmod 640 $install_dir/config.inc.php -#================================================= -# INSTALL DEPENDENCIES WITH COMPOSER -#================================================= -ynh_script_progression --message="Installing dependencies with Composer..." --weight=60 - -# Install Composer -ynh_install_composer - -# Install dependencies -# ynh_exec_warn_less ynh_composer_exec --commands="update --no-dev" -ynh_composer_exec --commands="update --no-dev" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6a4683f..8eb3f46 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,23 +114,6 @@ fi mkdir -p $install_dir/tmp chown -R $app: $install_dir/tmp -#================================================= -# INSTALL DEPENDENCIES -#================================================= - -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading dependencies with Composer..." --weight=19 - - # Install Composer - ynh_install_composer - - # Force dependency to the used PHP version - ynh_exec_warn_less ynh_composer_exec --commands="config -g platform.php $YNH_PHP_VERSION" - # Install dependencies - ynh_exec_warn_less ynh_composer_exec --commands="update --no-dev" -fi - #================================================= # END OF SCRIPT #=================================================