From 6e157c17f17cc8621407473cb55166b435ec394e Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Mon, 11 Mar 2024 16:06:02 +0100 Subject: [PATCH] [autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1 --- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index e52974e..767381a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -19,7 +19,7 @@ ynh_restore_file --origin_path="$install_dir" # $install_dir will automatically be initialized with some decent # permission by default ... however, you may need to recursively reapply -# ownership to all files such as after the ynh_setup_source step +# ownership to all files such as after the ynh_setup_source step --full_replace=1 chown -R $app:www-data "$install_dir" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 3805e3f..b32b157 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,7 +35,7 @@ then # Download, check integrity, uncompress and patch the source from app.src # Keep .env and database.sqlite ! - ynh_setup_source --dest_dir="$install_dir" --keep=".env database/database.sqlite" + ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env database/database.sqlite" # Remove this file as the app is already installed ynh_secure_remove $install_dir/INSTALLING @@ -43,7 +43,7 @@ fi # $install_dir will automatically be initialized with some decent # permission by default ... however, you may need to recursively reapply -# ownership to all files such as after the ynh_setup_source step +# ownership to all files such as after the ynh_setup_source step --full_replace=1 chown -R $app:www-data "$install_dir" chmod o-rwx "$install_dir" -R