From 82853f20619284ff8736a5c6fb4da5b900c81152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 2 Feb 2024 15:29:47 +0100 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index dafa757..6ec65c4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,7 +39,8 @@ ynh_systemd_action --service_name="$app" --action=stop # This is not handled by the core because the previous package did not define final_path... if [ -d "/opt/$app" ]; then # This is the package version of the manifestv2 - mv "/opt/$app/" "$install_dir" + mv -t "$install_dir/" "/opt/$app/"* + ynh_secure_remove --file="/opt/$app" fi # Move data directory