Update manifest and be coherent

This commit is contained in:
Josué Tille 2019-10-27 14:58:33 +01:00
parent 494847720b
commit 9bbbc78468
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
3 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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
}
]

View file

@ -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