From 88da55bd1755b88c554b4c3bff51b9389be99563 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 31 Aug 2021 18:12:31 +0200 Subject: [PATCH] Fix --- manifest.json | 14 ++++++++++++++ scripts/install | 3 +++ 2 files changed, 17 insertions(+) diff --git a/manifest.json b/manifest.json index d39a0c2..7121f34 100644 --- a/manifest.json +++ b/manifest.json @@ -35,10 +35,24 @@ "type": "domain", "example": "example.com" }, + { + "name": "admin", + "type": "user", + "example": "johndoe" + }, { "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." + }, + "example": "Choose a password" } ] } diff --git a/scripts/install b/scripts/install index f1286dd..ed6700f 100644 --- a/scripts/install +++ b/scripts/install @@ -24,6 +24,8 @@ domain=$YNH_APP_ARG_DOMAIN is_public=$YNH_APP_ARG_IS_PUBLIC path_url="/" secret=$(ynh_string_random) +password=$YNH_APP_ARG_PASSWORD +admin=$YNH_APP_ARG_ADMIN app=$YNH_APP_INSTANCE_NAME @@ -46,6 +48,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=1 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=$secret --value="$secret" +ynh_app_setting_set --app=$app --key=admin --value=$admin #================================================= # STANDARD MODIFICATIONS