From a5a6bfef099320eeffec28499d3a65fa532bf475 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 01:43:34 +0300 Subject: [PATCH] re-add language and admin/password --- manifest.json | 21 +++++++++++++++++++++ scripts/install | 7 ++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 85928c6..ca5b4d4 100644 --- a/manifest.json +++ b/manifest.json @@ -48,6 +48,27 @@ "name": "is_public", "type": "boolean", "default": true + }, + { + "name": "password", + "type": "password", + "help": { + "en": "Use the help field to add an information for the admin about this question.", + "fr": "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question." + } + }, + { + "name": "language", + "type": "string", + "ask": { + "en": "Choose the application language", + "fr": "Choisissez la langue de l'application" + }, + "choices": [ + "fr", + "en" + ], + "default": "fr" } ] } diff --git a/scripts/install b/scripts/install index b6f3c43..182d0ef 100755 --- a/scripts/install +++ b/scripts/install @@ -28,8 +28,8 @@ domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC -# language=$YNH_APP_ARG_LANGUAGE -# password=$YNH_APP_ARG_PASSWORD +language=$YNH_APP_ARG_LANGUAGE +password=$YNH_APP_ARG_PASSWORD ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID @@ -72,7 +72,8 @@ ynh_script_progression --message="Storing installation settings..." --time --wei ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=admin --value=$admin -# ynh_app_setting_set --app=$app --key=language --value=$language +ynh_app_setting_set --app=$app --key=password --value=$password +ynh_app_setting_set --app=$app --key=language --value=$language #================================================= # STANDARD MODIFICATIONS