diff --git a/scripts/upgrade b/scripts/upgrade index 3111fb3..6ee3b41 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,6 +64,11 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +# If final_path doesn't exist, create it +if [ -z "$gollem_data_dir" ]; then + gollem_data_dir=/home/yunohost.app/$app + ynh_app_setting_set --app=$app --key=gollem_data_dir --value=$gollem_data_dir +fi #================================================= # CREATE DEDICATED USER #=================================================