From 9bbbc78468555840faa0dc35cd692bc7784872ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sun, 27 Oct 2019 14:58:33 +0100 Subject: [PATCH] Update manifest and be coherent --- check_process | 1 + manifest.json | 7 ++++++- scripts/install | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/check_process b/check_process index 12447a9..5e259d4 100644 --- a/check_process +++ b/check_process @@ -7,6 +7,7 @@ server_name="Seafile" admin="john" (USER) admin_password="Sup3rS3cr3t" (PASSWORD) + is_public="1" (PUBLIC|public=1|private=0) public_site="1" (PUBLIC|public=1|private=0) ; Checks pkg_linter=1 diff --git a/manifest.json b/manifest.json index 3f2b3f7..298e04e 100644 --- a/manifest.json +++ b/manifest.json @@ -48,6 +48,7 @@ }, { "name": "server_name", + "type": "string", "ask": { "en": "Choose a name (3 - 15 letters or digits)", "fr": "Choisissez un nom (3 - 15 letters or digits)" @@ -74,12 +75,16 @@ "example": "**Sup3rS3cr3t**" }, { - "name": "public_site", + "name": "is_public", "type": "boolean", "ask": { "en": "Is it a public site ? If you want to use a desktop client or the smartphone app, make Seafile public.", "fr": "Est-ce un site public ? Pour utiliser un client sur PC ou l'application mobile, Seafile doit être public" }, + "help": { + "en": "If it's not public, everybody which want to access to any page of seafile need to be authenticated on the SSO. On the public mode anybody can access to the authentication page. The shared link will be olso accessible by anybody who has this link.", + "fr": "Si n'est pas publique, n'importe qui veux accéder à n'importe quelle page de seafile doit être authentifié dans le SSO. Dans le mode publique n'importe qui peut accéder à la page d'authentification de seafile. Les liens partagé seront aussi accessible par n'import qui qui à ce liens." + }, "default": true } ] diff --git a/scripts/install b/scripts/install index 4bad2ae..a529a5e 100644 --- a/scripts/install +++ b/scripts/install @@ -21,7 +21,7 @@ domain=$YNH_APP_ARG_DOMAIN path_url=$(ynh_normalize_url_path --path_url $YNH_APP_ARG_PATH) server_name="$YNH_APP_ARG_SERVER_NAME" admin=$YNH_APP_ARG_ADMIN -is_public=$YNH_APP_ARG_PUBLIC_SITE +is_public=$YNH_APP_ARG_IS_PUBLIC seafile_data=/home/yunohost.app/seafile-data final_path=/opt/yunohost/$app seafile_user=$app