From 3d2347a536e727e9e05d5b29c8c234cc52b07a13 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Wed, 18 Jan 2017 00:19:08 +0000 Subject: [PATCH] Update on check final_path --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index c8a119b..d049e4f 100644 --- a/scripts/install +++ b/scripts/install @@ -70,8 +70,9 @@ CHECK_DOMAINPATH () { # Vérifie la disponibilité du path et du domaine. CHECK_DOMAINPATH # Check destination folder is not used already +final_path=/var/www/$app + CHECK_FINALPATH () { # Vérifie que le dossier de destination n'est pas déjà utilisé. - final_path=/var/www/$app if [ -e "$final_path" ] then echo "This path already contains a folder" >&2 @@ -81,8 +82,6 @@ CHECK_FINALPATH () { # Vérifie que le dossier de destination n'est pas déj CHECK_FINALPATH -final_path=/var/www/$app - # Define variables and Save app settings ynh_app_setting_set "$app" domain "$domain" #ynh_app_setting_set "$app" path "$path"