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

Handle install on /

This commit is contained in:
Alexandre Aubin 2019-03-26 16:37:46 +01:00
parent 073ec3d8d5
commit 5de1b7b9de

View file

@ -25,7 +25,13 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME
final_path=/var/www/$path_url # so e.g. if path_url is /docs, we put stuff in /var/www/docs
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
fi
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS