1
0
Fork 0
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:
frju365 2020-05-16 00:07:12 +02:00
parent 514b8ede1d
commit 266e84c071
No known key found for this signature in database
GPG key ID: C892BE847FF5635A

View file

@ -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