mirror of
https://github.com/YunoHost-Apps/meilisearch_ynh.git
synced 2024-09-03 19:45:59 +02:00
correct option
This commit is contained in:
parent
514b8ede1d
commit
266e84c071
1 changed files with 3 additions and 0 deletions
|
@ -43,11 +43,14 @@ final_path=/var/www/$app
|
||||||
|
|
||||||
if [ $data_path != "" ];then
|
if [ $data_path != "" ];then
|
||||||
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"
|
||||||
|
mkdir -p $final_path
|
||||||
else
|
else
|
||||||
test ! -e "$data_path" || mkdir "$data_path"
|
test ! -e "$data_path" || mkdir "$data_path"
|
||||||
final_path=$data_path
|
final_path=$data_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Register (book) web path
|
# Register (book) web path
|
||||||
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue