diff --git a/scripts/upgrade b/scripts/upgrade index 8ff1b15..66df617 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -41,6 +41,12 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +# If backend_path doesn't exist, create it +if [ -z "$backend_path" ]; then + backend_path=/opt/$app + ynh_app_setting_set --app=$app --key=backend_path --value=$backend_path +fi + if [ -z "$set_motd" ]; then set_motd="" ynh_app_setting_set --app=$app --key=set_motd --value=$set_motd