From dd9914eff7ec8e5ea5eb3633e051b521c239a0c1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 7 Jan 2022 03:15:43 +0100 Subject: [PATCH] Fix datadir --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 08105df..73e20e9 100644 --- a/scripts/install +++ b/scripts/install @@ -40,6 +40,8 @@ ynh_script_progression --message="Validating installation parameters..." final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" +datadir=/home/yunohost.app/$app/data + # Register (book) web path ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url @@ -124,7 +126,6 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Creating a data directory..." -datadir=/home/yunohost.app/$app/data ynh_app_setting_set --app=$app --key=datadir --value=$datadir mkdir -p $datadir