1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framagames_ynh.git synced 2024-09-03 18:36:28 +02:00

Update on check final_path

This commit is contained in:
polytan02 2017-01-18 00:19:08 +00:00
parent bd6536ad94
commit 3d2347a536

View file

@ -70,8 +70,9 @@ CHECK_DOMAINPATH () { # Vérifie la disponibilité du path et du domaine.
CHECK_DOMAINPATH CHECK_DOMAINPATH
# Check destination folder is not used already # 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é. CHECK_FINALPATH () { # Vérifie que le dossier de destination n'est pas déjà utilisé.
final_path=/var/www/$app
if [ -e "$final_path" ] if [ -e "$final_path" ]
then then
echo "This path already contains a folder" >&2 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 CHECK_FINALPATH
final_path=/var/www/$app
# Define variables and Save app settings # Define variables and Save app settings
ynh_app_setting_set "$app" domain "$domain" ynh_app_setting_set "$app" domain "$domain"
#ynh_app_setting_set "$app" path "$path" #ynh_app_setting_set "$app" path "$path"