From 705864fdc6485d3b471b60d828589ee4e7998468 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 16 Nov 2021 20:12:53 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 07f745e..d4691b6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -62,6 +62,12 @@ then ynh_exec_warn_less yunohost firewall disallow TCP $port fi +# If final_path doesn't exist, create it +if [ -z "$architecture" ]; then + architecture="dpkg --print-architecture" + architecture=$(ynh_app_setting_get --app=$app --key=architecture) +fi + # If final_path doesn't exist, create it if [ -z "$final_path" ]; then final_path=/opt/yunohost/$app