1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/meilisearch_ynh.git synced 2024-09-03 19:45:59 +02:00

clean everything

This commit is contained in:
frju365 2020-05-15 22:44:13 +02:00
parent 6a3c942eea
commit 22b0aa048a
No known key found for this signature in database
GPG key ID: C892BE847FF5635A
2 changed files with 2 additions and 4 deletions

View file

@ -55,7 +55,7 @@
"name": "master_key", "name": "master_key",
"ask": { "ask": {
"en": "Choose a master API key for Meilisearch", "en": "Choose a master API key for Meilisearch",
"fr": "Choisissez un nom de domaine pour Meilisearch" "fr": "Choisissez une clef d'API pour Meilisearch"
}, },
"example": "API-key245678635248795" "example": "API-key245678635248795"
}, },

View file

@ -29,7 +29,6 @@ path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC is_public=$YNH_APP_ARG_IS_PUBLIC
master_key=$YNH_APP_ARG_MASTER_KEY master_key=$YNH_APP_ARG_MASTER_KEY
data_path=$YNH_APP_ARG_DATA_PATH data_path=$YNH_APP_ARG_DATA_PATH
i_data_path=$YNH_APP_ARG_I_DATA_PATH
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
@ -42,8 +41,7 @@ ynh_script_progression --message="Validating installation parameters..." --time
final_path=/var/www/$app final_path=/var/www/$app
if [ $i_data_path -ne 0 ] if [ $data_path != "" ];then
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"
else else
test ! -e "$data_path" || mkdir "$data_path" test ! -e "$data_path" || mkdir "$data_path"