This script is based on the install script from André Schenkels (https://github.com/aschenkels-ictstudio/openerp-install-scripts)
This script is based on the install script from André Schenkels (https://github.com/aschenkels-ictstudio/openerp-install-scripts)
but goes a bit further and has been improved. This script will also give you the ability to define an xmlrpc_port in the .conf file that is generated under /etc/
but goes a bit further and has been improved. This script will also give you the ability to define an http_port in the .conf file that is generated under /etc/
This script can be safely used in a multi-odoo code base server because the default Odoo port is changed BEFORE the Odoo is started.
This script can be safely used in a multi-odoo code base server because the default Odoo port is changed BEFORE the Odoo is started.
There are a few things you can configure, this is the most used list:<br/>
There are a few things you can configure, this is the most used list:<br/>
```OE_USER``` will be the username for the system user.<br/>
```OE_USER``` will be the username for the system user.<br/>
```INSTALL_WKHTMLTOPDF``` set to ```False``` if you do not want to install Wkhtmltopdf, if you want to install it you should set it to ```True```.<br/>
```INSTALL_WKHTMLTOPDF``` set to ```False``` if you do not want to install Wkhtmltopdf, if you want to install it you should set it to ```True```.<br/>
```OE_PORT``` is the port where Odoo should run on, for example 8069.<br/>
```OE_PORT``` is the port where Odoo should run on, for example 8069.<br/>
```OE_VERSION``` is the Odoo version to install, for example ```11.0``` for Odoo V11.<br/>
```OE_VERSION``` is the Odoo version to install, for example ```12.0``` for Odoo V12.<br/>
```IS_ENTERPRISE``` will install the Enterprise version on top of ```11.0``` if you set it to ```True```, set it to ```False``` if you want the community version of Odoo 11.<br/>
```IS_ENTERPRISE``` will install the Enterprise version on top of ```12.0``` if you set it to ```True```, set it to ```False``` if you want the community version of Odoo 12.<br/>
```OE_SUPERADMIN``` is the master password for this Odoo installation.<br/>
```OE_SUPERADMIN``` is the master password for this Odoo installation.<br/>
#Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.)
#Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.)
OE_PORT="8069"
OE_PORT="8069"
#Choose the Odoo version which you want to install. For example: 12.0, 11.0, 10.0, 9.0 or saas-18. When using 'master' the master version will be installed.
#Choose the Odoo version which you want to install. For example: 12.0, 11.0, 10.0, 9.0 or saas-18. When using 'master' the master version will be installed.
OE_VERSION="saas-11.5" # Note that after v12 is released (03/10/2018) you should change this to 12.0
OE_VERSION="12.0"
# Set this to True if you want to install Odoo 12 Enterprise!
# Set this to True if you want to install Odoo 12 Enterprise!
IS_ENTERPRISE="False"
IS_ENTERPRISE="False"
#set the superadmin password
#set the superadmin password
@ -37,8 +37,8 @@ OE_CONFIG="${OE_USER}-server"
## === Ubuntu Trusty x64 & x32 === (for other distributions please replace these two links,
## === Ubuntu Trusty x64 & x32 === (for other distributions please replace these two links,
## in order to have correct version of wkhtmltox installed, for a danger note refer to
## in order to have correct version of wkhtmltox installed, for a danger note refer to