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 odoo 10.0

This commit is contained in:
ljf 2016-12-14 12:02:22 +01:00
parent a923d850c2
commit a1a238ac36
3 changed files with 7 additions and 9 deletions

View file

@ -36,8 +36,8 @@
"en": "Which version of Odoo do you want to install?",
"fr": "Quelle version d'Odoo souhaitez-vous installer ?"
},
"choices": ["8.0", "9.0"],
"default": "8.0"
"choices": ["8.0", "9.0", "10.0"],
"default": "9.0"
},
{
"name": "admin_password",

View file

@ -55,15 +55,13 @@ else
# Install Odoo
sudo curl -sS https://nightly.odoo.com/odoo.key | sudo apt-key add -
if [ "$odoo_version" = "8.0" ]; then
sudo sh -c 'echo "deb http://nightly.odoo.com/8.0/nightly/deb/ ./" > /etc/apt/sources.list.d/odoo.list'
else
sudo sh -c 'echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" > /etc/apt/sources.list.d/odoo.list'
fi
sudo sh -c "echo 'deb http://nightly.odoo.com/${odoo_version}/nightly/deb/ ./' > /etc/apt/sources.list.d/odoo.list"
sudo apt-get update
# Initialize installation
ynh_package_install postgresql odoo
ynh_package_install postgresql
ynh_package_install odoo
# Install wkhtmltopdf to print PDF reports
ynh_package_install xfonts-75dpi xfonts-base wkhtmltopdf

View file

@ -34,7 +34,7 @@ if [ "$instance" = "slave" ]; then
sudo yunohost service start odoo | true
fi
# Remove NGINX conf
sudo rm /etc/nginx/conf.d/$domain.d/$app.conf
sudo rm /etc/nginx/conf.d/$domain.d/$app.conf | true
# Reload
sudo service nginx reload