From 03c655316fd11c9df4868c3ccaa523eae6d06be8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 16 May 2022 16:15:45 +0200 Subject: [PATCH] set path to /var/www --- scripts/install | 2 +- scripts/upgrade | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 56b92ff..9ab45ae 100755 --- a/scripts/install +++ b/scripts/install @@ -35,7 +35,7 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 -final_path=/opt/yunohost/$app +final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" # Register (book) web path diff --git a/scripts/upgrade b/scripts/upgrade index 25994c6..24a2846 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,7 +63,8 @@ fi # If final_path doesn't exist, create it if [ -z "$final_path" ]; then - final_path=/opt/yunohost/$app + final_path=/var/www/$app + mkdir -p $final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi