mirror of
https://github.com/YunoHost-Apps/h5ai_ynh.git
synced 2024-09-03 20:36:25 +02:00
fix
This commit is contained in:
parent
e93e5e6f0e
commit
3014fc5f96
1 changed files with 7 additions and 1 deletions
|
@ -35,7 +35,13 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
#=================================================
|
||||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
||||
|
||||
final_path=/var/www/$app
|
||||
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
|
||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||
|
||||
# Register (book) web path
|
||||
|
|
Loading…
Reference in a new issue