From b13ad7430c6eb5c325e2f71dd9495869dd2ff548 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 22 Dec 2021 12:08:39 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 3917b66..573c96b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -55,6 +55,12 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +# If final_path doesn't exist, create it +if [ -z "$final_path" ]; then + final_path=/var/www/$app + ynh_app_setting_set --app=$app --key=final_path --value=$final_path +fi + # If new datadir doesn't exist, create it if [ -z "/home/yunohost.app/$app" ]; then datadir=/home/yunohost.app/$app