1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

[enh] Add question for OCA repo

This commit is contained in:
ljf 2016-12-14 12:14:06 +01:00
parent a1a238ac36
commit fd307618d9
2 changed files with 66 additions and 62 deletions

View file

@ -1,61 +1,64 @@
{ {
"name": "Odoo", "name": "Odoo",
"id": "odoo", "id": "odoo",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "Odoo is a suite of business apps (ERP: CRM, Accounting, Point of Sale, HR, Purchases...).", "en": "Odoo is a suite of business apps (ERP: CRM, Accounting, Point of Sale, HR, Purchases...).",
"fr": "Odoo est une collection d'apps de gestion d'entreprise (ERP : CRM, Comptabilité, Point de Vente, RH, Achats, ...)." "fr": "Odoo est une collection d'apps de gestion d'entreprise (ERP : CRM, Comptabilité, Point de Vente, RH, Achats, ...)."
}, },
"maintainer": { "maintainer": {
"name": "scith, ljf", "name": "scith, ljf",
"email": "ljf+yunohost@grimaud.me" "email": "ljf+yunohost@grimaud.me"
}, },
"url":"https://www.odoo.com", "url": "https://www.odoo.com",
"license":"free", "license": "free",
"requirements": { "requirements": {
"yunohost": ">= 2.4.0" "yunohost": ">= 2.4.0"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [
"nginx" "nginx"
], ],
"arguments": { "arguments": {
"install" : [ "install": [{
{ "name": "domain",
"name": "domain", "type": "domain",
"type": "domain", "ask": {
"ask": { "en": "Choose a domain for Odoo (Odoo will be installed on its root!)",
"en": "Choose a domain for Odoo (Odoo will be installed on its root!)", "fr": "Choisissez un domaine pour Odoo (Odoo sera installé dans sa racine !)"
"fr": "Choisissez un domaine pour Odoo (Odoo sera installé dans sa racine !)" },
}, "example": "odoo.domain.org"
"example": "odoo.domain.org" }, {
}, "name": "version",
{ "ask": {
"name": "odoo_version", "en": "Which version of Odoo do you want to install?",
"ask": { "fr": "Quelle version d'Odoo souhaitez-vous installer ?"
"en": "Which version of Odoo do you want to install?", },
"fr": "Quelle version d'Odoo souhaitez-vous installer ?" "choices": ["8.0", "9.0", "10.0"],
}, "default": "9.0"
"choices": ["8.0", "9.0", "10.0"], }, {
"default": "9.0" "name": "oca",
}, "type": "boolean",
{ "ask": {
"name": "admin_password", "en": "Use OCA repository to get community bugfixes ?",
"type": "password", "fr": "Utiliser les dépots OCA pour bénéficier des bugfix communautaires ?"
"ask": { },
"en": "Choose a strong master admin password", "default": false
"fr": "Choisissez un mot de passe maître fort pour l'administration" }, {
} "name": "admin_password",
}, "type": "password",
{ "ask": {
"name": "lang", "en": "Choose a strong master admin password",
"ask": { "fr": "Choisissez un mot de passe maître fort pour l'administration"
"en": "Choose a language for Odoo", }
"fr": "Choisissez une langue pour Odoo" }, {
}, "name": "lang",
"choices": ["en_US", "fr_FR", "de_DE"], "ask": {
"default": "en_US" "en": "Choose a language for Odoo",
} "fr": "Choisissez une langue pour Odoo"
] },
} "choices": ["en_US", "fr_FR", "de_DE"],
"default": "en_US"
}]
}
} }

View file

@ -6,7 +6,8 @@ app=$YNH_APP_INSTANCE_NAME
# Retrieve arguments # Retrieve arguments
domain=$YNH_APP_ARG_DOMAIN domain=$YNH_APP_ARG_DOMAIN
odoo_version=$YNH_APP_ARG_ODOO_VERSION version=$YNH_APP_ARG_VERSION
oca=$YNH_APP_ARG_OCA
admin_password=$YNH_APP_ARG_ADMIN_PASSWORD admin_password=$YNH_APP_ARG_ADMIN_PASSWORD
lang=$YNH_APP_ARG_LANG lang=$YNH_APP_ARG_LANG
@ -46,7 +47,7 @@ else
echo "Installing odoo" echo "Installing odoo"
ynh_app_setting_set "$app" version "$odoo_version" ynh_app_setting_set "$app" version "$version"
ynh_app_setting_set "$app" instance "master" ynh_app_setting_set "$app" instance "master"
# Install Odoo # Install Odoo
@ -55,7 +56,7 @@ else
# Install Odoo # Install Odoo
sudo curl -sS https://nightly.odoo.com/odoo.key | sudo apt-key add - sudo curl -sS https://nightly.odoo.com/odoo.key | sudo apt-key add -
sudo sh -c "echo 'deb http://nightly.odoo.com/${odoo_version}/nightly/deb/ ./' > /etc/apt/sources.list.d/odoo.list" sudo sh -c "echo 'deb http://nightly.odoo.com/${version}/nightly/deb/ ./' > /etc/apt/sources.list.d/odoo.list"
sudo apt-get update sudo apt-get update
# Initialize installation # Initialize installation