This commit is contained in:
scith 2015-09-14 20:27:12 +02:00
parent 77011b3e4d
commit f17e83a4a3

View file

@ -23,7 +23,7 @@ sudo yunohost app setting $app domain -v $domain
# Install Odoo
# Prepare installation
sudo apt-get -y install curl
sudo apt-get -y -qq install curl
# Install Odoo
sudo curl -sS https://nightly.odoo.com/odoo.key | sudo apt-key add -
@ -33,10 +33,13 @@ sudo yunohost app setting $app domain -v $domain
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 -y install wkhtmltopdf
sudo apt-get -y install odoo
# Initialize installation
sudo apt-get -y -qq install postgresql
su - postgres -c "createuser -s odoo" 2> /dev/null || true
sudo apt-get -y -qq install odoo
# Set admin password
sudo sed -i "s@ADMIN_PASSWORD@$admin_password@g" ../conf/openerp-server.conf
sudo cp ../conf/openerp-server.conf /etc/odoo/openerp-server.conf
@ -51,6 +54,9 @@ sudo yunohost app setting $app domain -v $domain
sudo yunohost service stop odoo
sudo yunohost service start odoo
# Install wkhtmltopdf to print PDF reports
sudo apt-get -y -qq install wkhtmltopdf
# Configure Nginx and reload
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf