From 73307152ecce5056981c9f4b32667b9979567c3f Mon Sep 17 00:00:00 2001 From: MinhHQ Date: Fri, 5 Oct 2018 10:37:24 +0700 Subject: [PATCH 1/4] update oe_version and WKHTMLTOPDFdownload link --- odoo_install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 87ecb72..f29afc4 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -25,7 +25,7 @@ INSTALL_WKHTMLTOPDF="True" #Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.) 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. -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! IS_ENTERPRISE="False" #set the superadmin password @@ -35,10 +35,10 @@ OE_CONFIG="${OE_USER}-server" ## ### WKHTMLTOPDF download 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 ## https://www.odoo.com/documentation/8.0/setup/install.html#deb ): -WKHTMLTOX_X64=https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb -WKHTMLTOX_X32=https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-i386.deb +WKHTMLTOX_X64=https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb +WKHTMLTOX_X32=https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_i386.deb #-------------------------------------------------- # Update Server @@ -71,6 +71,7 @@ sudo apt-get install node-less -y #-------------------------------------------------- if [ $INSTALL_WKHTMLTOPDF = "True" ]; then echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 12 ----" + sudo apt install xfonts-base xfonts-75dpi -y #pick up correct one from x64 & x32 versions: if [ "`getconf LONG_BIT`" == "64" ];then _url=$WKHTMLTOX_X64 From e11a7d269d97bb451178578ee61b2144d4bf28ca Mon Sep 17 00:00:00 2001 From: MinhHQ Date: Fri, 5 Oct 2018 12:46:28 +0700 Subject: [PATCH 2/4] additon lib --- odoo_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index f29afc4..4ce2029 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -51,7 +51,7 @@ sudo apt-get upgrade -y # Install PostgreSQL Server #-------------------------------------------------- echo -e "\n---- Install PostgreSQL Server ----" -sudo apt-get install postgresql -y +sudo apt-get install postgresql postgresql-server-dev-10 build-essential -y echo -e "\n---- Creating the ODOO PostgreSQL User ----" sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true @@ -60,7 +60,7 @@ sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true # Install Dependencies #-------------------------------------------------- echo -e "\n--- Installing Python 3 + pip3 --" -sudo apt-get install python3 python3-pip git gdebi-core -y +sudo apt-get install python3 python3-pip python3-pil python3-lxml python-ldap3 python3-dev python3-setuptools git gdebi-core libldap2-dev libsasl2-dev libxml2-dev libxslt1-dev libjpeg-dev -y echo -e "\n--- Install other required packages" sudo apt-get install node-clean-css -y From 075a769acbce41a980bfebca248f1b75ca1a442c Mon Sep 17 00:00:00 2001 From: MinhHQ Date: Fri, 5 Oct 2018 15:55:39 +0700 Subject: [PATCH 3/4] update README file --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 758ebc7..72d713b 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ # [Odoo](https://www.odoo.com "Odoo's Homepage") Install Script 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. ## Installation procedure ##### 1. Download the script: ``` -sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/11.0/odoo_install.sh +sudo wget https://raw.githubusercontent.com/minhhq09/InstallScript/12.0-test/odoo_install.sh ``` ##### 2. 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.
```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```.
```OE_PORT``` is the port where Odoo should run on, for example 8069.
-```OE_VERSION``` is the Odoo version to install, for example ```11.0``` for Odoo V11.
-```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.
+```OE_VERSION``` is the Odoo version to install, for example ```12.0``` for Odoo V12.
+```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.
```OE_SUPERADMIN``` is the master password for this Odoo installation.
#### 3. Make the script executable From 989b3a144019a279760e80fff617dad40f0d0427 Mon Sep 17 00:00:00 2001 From: MinhHQ Date: Fri, 5 Oct 2018 16:33:37 +0700 Subject: [PATCH 4/4] change xmlrpc_port to http_port --- odoo_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo_install.sh b/odoo_install.sh index 4ce2029..68bb11b 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -146,7 +146,7 @@ sudo touch /etc/${OE_CONFIG}.conf echo -e "* Creating server config file" sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/${OE_CONFIG}.conf" sudo su root -c "printf 'admin_passwd = ${OE_SUPERADMIN}\n' >> /etc/${OE_CONFIG}.conf" -sudo su root -c "printf 'xmlrpc_port = ${OE_PORT}\n' >> /etc/${OE_CONFIG}.conf" +sudo su root -c "printf 'http_port = ${OE_PORT}\n' >> /etc/${OE_CONFIG}.conf" sudo su root -c "printf 'logfile = /var/log/${OE_USER}/${OE_CONFIG}.log\n' >> /etc/${OE_CONFIG}.conf" if [ $IS_ENTERPRISE = "True" ]; then sudo su root -c "printf 'addons_path=${OE_HOME}/enterprise/addons,${OE_HOME_EXT}/addons\n' >> /etc/${OE_CONFIG}.conf"