diff --git a/manifest.json b/manifest.json index a1de0c3..dd80d75 100644 --- a/manifest.json +++ b/manifest.json @@ -55,7 +55,7 @@ "name": "master_key", "ask": { "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" }, diff --git a/scripts/install b/scripts/install index d93fe03..53d5f66 100644 --- a/scripts/install +++ b/scripts/install @@ -29,7 +29,6 @@ path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC master_key=$YNH_APP_ARG_MASTER_KEY data_path=$YNH_APP_ARG_DATA_PATH -i_data_path=$YNH_APP_ARG_I_DATA_PATH app=$YNH_APP_INSTANCE_NAME @@ -42,8 +41,7 @@ ynh_script_progression --message="Validating installation parameters..." --time final_path=/var/www/$app -if [ $i_data_path -ne 0 ] -then +if [ $data_path != "" ];then test ! -e "$final_path" || ynh_die --message="This path already contains a folder" else test ! -e "$data_path" || mkdir "$data_path"