From 3014fc5f964f81f45d40bf3f429ebcb1f7020915 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Mon, 4 Apr 2022 18:14:17 +0000 Subject: [PATCH] fix --- scripts/install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 3132f9f..048ea77 100644 --- a/scripts/install +++ b/scripts/install @@ -35,7 +35,13 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 -final_path=/var/www/$app +if [[ "$path_url" != "/" ]] +then + # We use the path url name (e.g. /documents) instead of h5ai for convenience... + final_path=/var/www$path_url +else + final_path=/var/www/$app +fi test ! -e "$final_path" || ynh_die --message="This path already contains a folder" # Register (book) web path