1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

Gotta use cp -a such that composer.json is owned by the app, because now ynh_composer_exec runs as $app

This commit is contained in:
Alexandre Aubin 2024-06-20 22:15:44 +02:00
parent 1200165f38
commit 75abaa231f
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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
#=================================================