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