Fix upgrade

This commit is contained in:
Josué Tille 2024-02-02 15:29:47 +01:00
parent b9d4c6b40f
commit 82853f2061
No known key found for this signature in database
GPG Key ID: 5F259226AD51F2F5

View File

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