1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00
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 # Install Odoo
# Prepare installation # Prepare installation
sudo apt-get -y install curl sudo apt-get -y -qq install curl
# 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 -
@ -33,9 +33,12 @@ 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' sudo sh -c 'echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" > /etc/apt/sources.list.d/odoo.list'
fi fi
sudo apt-get update sudo apt-get update
sudo apt-get -y install wkhtmltopdf
sudo apt-get -y install odoo # Initialize installation
su - postgres -c "createuser -s odoo" 2> /dev/null || true 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 # Set admin password
sudo sed -i "s@ADMIN_PASSWORD@$admin_password@g" ../conf/openerp-server.conf sudo sed -i "s@ADMIN_PASSWORD@$admin_password@g" ../conf/openerp-server.conf
@ -51,6 +54,9 @@ sudo yunohost app setting $app domain -v $domain
sudo yunohost service stop odoo sudo yunohost service stop odoo
sudo yunohost service start odoo sudo yunohost service start odoo
# Install wkhtmltopdf to print PDF reports
sudo apt-get -y -qq install wkhtmltopdf
# Configure Nginx and reload # Configure Nginx and reload
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf