[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?", "en": "Which version of Odoo do you want to install?",
"fr": "Quelle version d'Odoo souhaitez-vous installer ?" "fr": "Quelle version d'Odoo souhaitez-vous installer ?"
}, },
"choices": ["8.0", "9.0"], "choices": ["8.0", "9.0", "10.0"],
"default": "8.0" "default": "9.0"
}, },
{ {
"name": "admin_password", "name": "admin_password",

View file

@ -55,15 +55,13 @@ 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 -
if [ "$odoo_version" = "8.0" ]; then 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/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 apt-get update sudo apt-get update
# Initialize installation # Initialize installation
ynh_package_install postgresql odoo ynh_package_install postgresql
ynh_package_install odoo
# Install wkhtmltopdf to print PDF reports # Install wkhtmltopdf to print PDF reports
ynh_package_install xfonts-75dpi xfonts-base wkhtmltopdf ynh_package_install xfonts-75dpi xfonts-base wkhtmltopdf

View file

@ -34,7 +34,7 @@ if [ "$instance" = "slave" ]; then
sudo yunohost service start odoo | true sudo yunohost service start odoo | true
fi fi
# Remove NGINX conf # 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 # Reload
sudo service nginx reload sudo service nginx reload