From 3fc9ade2d54abc1d624235f774d8c8458fdea6e8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 25 Mar 2021 20:06:40 +0100 Subject: [PATCH] Update install --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index ca50681..106965b 100644 --- a/scripts/install +++ b/scripts/install @@ -22,14 +22,15 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN is_public=$YNH_APP_ARG_IS_PUBLIC -path_url=$YNH_APP_ARG_PATH # Assure la compatibilité avec les fonctions utilisant $path_url -app=$YNH_APP_INSTANCE_NAME +path_url=$YNH_APP_ARG_PATH secret=$(ynh_string_random) +app=$YNH_APP_INSTANCE_NAME + #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= -ynh_script_progression --message="Validating installation parameters..." --time --weight=1 +ynh_script_progression --message="Validating installation parameters..." --weight=1 final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder"