From 4266a057019be530f3bc442c31d8e18a7f6328b6 Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Mon, 5 Feb 2024 15:20:50 +0100 Subject: [PATCH] fix: only composer update during upgrade --- scripts/_common.sh | 3 +-- scripts/install | 3 ++- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index eefe918..090d8c1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,9 +16,8 @@ carddav_version=5.0.1 # DEFINE ALL COMMON FONCTIONS #================================================= -install_composer() { +setup_composer_deps() { cp "$install_dir/composer.json-dist" "$install_dir/composer.json" - ynh_install_composer } configure_roundcube() { diff --git a/scripts/install b/scripts/install index 4ca8152..ae337be 100644 --- a/scripts/install +++ b/scripts/install @@ -59,7 +59,8 @@ ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name # INSTALL DEPENDENCIES AND PLUGINS #================================================= ynh_script_progression --message="Installing Roundcube with Composer..." --weight=30 -install_composer +setup_composer_deps +ynh_install_composer ynh_script_progression --message="Configuring Roundcube..." --weight=2 configure_roundcube diff --git a/scripts/upgrade b/scripts/upgrade index bf549fc..3929a14 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,7 +83,7 @@ ynh_add_nginx_config # CONFIGURE ROUNDCUBE #================================================= ynh_script_progression --message="Installing Roundcube with Composer..." --weight=30 -install_composer +setup_composer_deps ynh_composer_exec --commands="update --no-dev" ynh_script_progression --message="Configuring Roundcube..." --weight=2