- Download the script:
git clone https://github.com/ventor-tech/odoo-install-script
- Modify the parameters as you wish. There are a few things you can configure, this is the most used list:
- OE_USER - will be the username for the system user.
- OE_HOME - will be the home directory of the system user.
- OE_VERSION - is the Odoo version to install, for example 10.0 for Odoo V10.
- OE_INSTALL_DIR - is the path where all environment will be installed to.
- OE_REPO - is the path where odoo will be clonned to.
- INSTALL_WKHTMLTOPDF - set to False if you do not want to install it, if you want to install it you should set it to True.
- OE_PORT - is the port where Odoo should run on, for example 8069.
- OE_NETRPC_PORT - is the port where Odoo net-rpc should run on, for example 8070.
- OE_LONGPOOL_PORT - is the port where Odoo long pool should run on, for example 8070.
- IS_ENTERPRISE - will install the Enterprise version on top of community version if you set it to True, set it to False if you want the community version of Odoo.
- OE_SUPERADMIN - is the master password for this Odoo installation.
- OE_DB_PASSWORD - is the password of postgres user.
- OE_WORKERS - is the number of Odoo workers
- PG_VERSION - is a version of postgresql installed
- Become root
su
- Make the script executable
sudo chmod +x run.sh
- Execute the script:
sudo ./run.sh