From 75abaa231f18422162b2835f538a90321ae631ce Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 20 Jun 2024 22:15:44 +0200 Subject: [PATCH] Gotta use cp -a such that composer.json is owned by the app, because now ynh_composer_exec runs as $app --- scripts/install | 2 +- scripts/upgrade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index f8017b4..c704c1e 100644 --- a/scripts/install +++ b/scripts/install @@ -50,7 +50,7 @@ ynh_config_add_phpfpm ynh_script_progression "Installing Roundcube with Composer..." # Install composer.json -cp "$install_dir/composer.json-dist" "$install_dir/composer.json" +cp -a "$install_dir/composer.json-dist" "$install_dir/composer.json" # Install composer ynh_composer_install diff --git a/scripts/upgrade b/scripts/upgrade index 3cf675f..d0bd0e9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -90,7 +90,7 @@ then # Upgrade composer itself ynh_composer_install -ynh_composer_exec install --no-dev + ynh_composer_exec install --no-dev # Check if dependencies need to be updated with Composer if [ -f "$install_dir/composer.json" ] @@ -100,7 +100,7 @@ ynh_composer_exec install --no-dev ynh_composer_exec require roundcube/plugin-installer:>=0.2.0 else # Install composer.json - cp "$install_dir/composer.json-dist" "$install_dir/composer.json" + cp -a "$install_dir/composer.json-dist" "$install_dir/composer.json" fi #=================================================