1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

Test old manifest

This commit is contained in:
Krakinou 2018-12-16 13:30:52 +01:00
parent 940a347506
commit aecae63c5f
2 changed files with 32 additions and 52 deletions

View file

@ -1,25 +1,27 @@
{ {
"name": "Calibre-web", "name": "YunoHost example app",
"id": "calibreweb", "id": "ynhexample",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "Calibre-web for Yunohost", "en": "Example package for YunoHost application.",
"fr": "Calibre-web pour Yunohost." "fr": "Exemple de package dapplication pour YunoHost."
}, },
"version": "1.0~ynh1", "version": "1.0~ynh1",
"url": "https://github.com/janeczku/calibre-web", "url": "https://example.com",
"license": "free", "license": "free",
"maintainer": { "maintainer": {
"name": "Krakinou", "name": "John doe",
"email": "misterl56@hotmail.com" "email": "john.doe@example.com",
"url": "http://example.com"
}, },
"requirements": { "requirements": {
"yunohost": ">= 2.7.14" "yunohost": ">= 2.7.14"
}, },
"multi_instance": false, "multi_instance": true,
"services": [ "services": [
"nginx", "nginx",
"calibreweb" "php5-fpm",
"mysql"
], ],
"arguments": { "arguments": {
"install" : [ "install" : [
@ -27,8 +29,8 @@
"name": "domain", "name": "domain",
"type": "domain", "type": "domain",
"ask": { "ask": {
"en": "Choose a domain name for Calibre-web", "en": "Choose a domain name for ynhexample",
"fr": "Choisissez un nom de domaine pour Calibre-web" "fr": "Choisissez un nom de domaine pour ynhexample"
}, },
"example": "example.com" "example": "example.com"
}, },
@ -36,23 +38,11 @@
"name": "path", "name": "path",
"type": "path", "type": "path",
"ask": { "ask": {
"en": "Choose a path for Calibre-web", "en": "Choose a path for ynhexample",
"fr": "Choisissez un chemin pour Calibre-web" "fr": "Choisissez un chemin pour ynhexample"
}, },
"example": "/calibre", "example": "/example",
"default": "/calibre" "default": "/example"
},
{
"name": "calibre_path",
"ask": {
"en": "Select the folder containing the library",
"fr": "Choisissez le répertoire contenant la bibliothèque"
},
"help": {
"en": "This folder should have read write access. It will be created if it does not exist.",
"fr": "Le répertoire doit être accesible en lecture écriture, il sera créé s'il n'existe pas."
},
"example": "/home/johndoe/calibre"
}, },
{ {
"name": "admin", "name": "admin",
@ -64,13 +54,21 @@
"example": "johndoe" "example": "johndoe"
}, },
{ {
"name": "language", "name": "is_public",
"type":"language", "type": "boolean",
"ask": { "ask": {
"en": "Select a default language (you may change it later in the app)", "en": "Is it a public application?",
"fr": "Choisissez une langue par défaut (vous pourrez la changer ultérieurement dans l'application)" "fr": "Est-ce une application publique ?"
}, },
"choices": [ "fr", "en", "es", "de"], "default": true
},
{
"name": "language",
"ask": {
"en": "Choose the application language",
"fr": "Choisissez la langue de l'application"
},
"choices": ["fr", "en"],
"default": "fr" "default": "fr"
}, },
{ {
@ -85,25 +83,7 @@
"fr": "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question." "fr": "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question."
}, },
"example": "Choose a password" "example": "Choose a password"
}, }
{
"name": "upload",
"type":"boolean",
"ask": {
"en": "Do you want to allow uploading of books (you may change it later in the app)?",
"fr": "Voulez vous autoriser l'upload de livres (vous pourrez la changer ultérieurement dans l'application)?"
},
"default": false
},
{
"name": "is_public",
"type": "boolean",
"ask": {
"en": "Is it a public application?",
"fr": "Est-ce une application publique ?"
},
"default": false
},
] ]
} }
} }

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
#add comment
#================================================= #=================================================
# GENERIC START # GENERIC START
#================================================= #=================================================