From 89d396f77c516cab3fc2a48f1a4635388633907c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 10 Mar 2022 21:04:07 +0100 Subject: [PATCH] Fix missing gollem_data_dir --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) 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 #=================================================