1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/h5ai_ynh.git synced 2024-09-03 20:36:25 +02:00
This commit is contained in:
Tagadda 2022-04-04 18:14:17 +00:00
parent e93e5e6f0e
commit 3014fc5f96

View file

@ -35,7 +35,13 @@ app=$YNH_APP_INSTANCE_NAME
#================================================= #=================================================
ynh_script_progression --message="Validating installation parameters..." --weight=1 ynh_script_progression --message="Validating installation parameters..." --weight=1
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 final_path=/var/www/$app
fi
test ! -e "$final_path" || ynh_die --message="This path already contains a folder" test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
# Register (book) web path # Register (book) web path