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:
parent
073ec3d8d5
commit
5de1b7b9de
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue