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