From 04b3c0358034b977a37e5cc7b1d57214f64fa6c3 Mon Sep 17 00:00:00 2001 From: Simon Mellerin Date: Mon, 8 Jan 2024 10:06:35 +0100 Subject: [PATCH] Keep private dir when upgrading --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 12ccc5c..0676498 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -58,6 +58,9 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$tmpdir" + # Keep private dir + mv "$install_dir/private" "$tmpdir" + # Replace the old aeneria by the new one ynh_secure_remove --file="$install_dir" mv "$tmpdir" "$install_dir"