From a3d88e4a1d7b4f3bddaab6bdc6c1cc4743fb678d Mon Sep 17 00:00:00 2001 From: Salamandar <6552989+Salamandar@users.noreply.github.com> Date: Wed, 10 Jan 2024 22:17:05 +0100 Subject: [PATCH] Fix upgrade: ynh_setup_source should overwrite the whole directory. --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6d65b46..62ec84f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,7 +39,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=7 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep=".env storage/oauth-private.key storage/oauth-public.key storage/private_uploads public/uploads" + ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env storage/oauth-private.key storage/oauth-public.key storage/private_uploads public/uploads" fi chown -R $app:www-data "$install_dir"