From 60a70661886c79183f6a35b4df0e887c7dc999b3 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 17 Jul 2022 06:03:09 +0200 Subject: [PATCH] fix missing datadir --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 9b19d3c..31c329c 100755 --- a/scripts/install +++ b/scripts/install @@ -30,6 +30,7 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 +datadir=/home/yunohost.app/$app final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" @@ -106,7 +107,6 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Creating a data directory..." --weight=1 -datadir=/home/yunohost.app/$app ynh_app_setting_set --app=$app --key=datadir --value=$datadir mkdir -p $datadir/uploads