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

Update install

This commit is contained in:
Rafi59 2017-10-09 17:11:05 +02:00 committed by GitHub
parent d0ad9b7d37
commit bb217a845c

View file

@ -27,17 +27,16 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
# CHECK IF THE APP CAN BE INSTALLED WITH THIS ARGS # CHECK IF THE APP CAN BE INSTALLED WITH THIS ARGS
#================================================= #=================================================
if sudo yunohost domain list | grep -q $domain # Vérifie la liste des domaines final_path=/var/www/$app
then # Si le domaine existe dans Yunohost test ! -e "$final_path" || ynh_die "This path already contains a folder"
if sudo yunohost app map | grep -q $domain # Vérifie la liste des apps par domaine
then # Si une app est installée sur ce domaine.
WARNING echo "An app is already installed on the domain $domain. cryptpad needs a whole domain or subdomain to himself."
fi
fi
path_url=$(ynh_normalize_url_path $path_url) # Check and normalize path # Normalize the url path syntax
CHECK_DOMAINPATH # Vérifie la disponibilité du path et du domaine. path_url=$(ynh_normalize_url_path $path_url)
CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé.
# Check web path availability
ynh_webpath_available $domain $path_url
# Register (book) web path
ynh_webpath_register $app $domain $path_url
#================================================= #=================================================
# STORE SETTINGS FROM MANIFEST # STORE SETTINGS FROM MANIFEST