From cbcb85118a8bf55ed849a27381e814434e25f4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 15 Aug 2018 21:24:07 +0200 Subject: [PATCH] Use boolean for is_public --- manifest.json | 4 ++-- scripts/install | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 0342ed1..00bd31f 100644 --- a/manifest.json +++ b/manifest.json @@ -32,12 +32,12 @@ }, { "name": "is_public", + "type": "boolean", "ask": { "en": "Is it a public application?", "fr": "Est-ce une application publique ?" }, - "choices": ["Yes", "No"], - "default": "Yes" + "default": true } ] diff --git a/scripts/install b/scripts/install index 1462301..3b27ed6 100755 --- a/scripts/install +++ b/scripts/install @@ -12,6 +12,12 @@ is_public=$3 path="/SOGo" codename=$(lsb_release -c -s) +if [[ $is_public == 0 ]] +then + is_public="No" +else + is_public="Yes" +fi # Save app settings sudo yunohost app setting $app admin -v "$admin"