forked from ventor-tech/odoo-install-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.sh
62 lines (55 loc) · 2.04 KB
/
conf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
##fixed parameters
#odoo
OE_VERSION="14.0"
OE_INSTALL_DIR="$OE_HOME/$OE_VERSION"
OE_REPO="$OE_INSTALL_DIR/odoo"
#Set to true if you want to install it, false if you don't need it or have it already installed.
INSTALL_WKHTMLTOPDF="True"
OE_PORT="8069"
OE_NETRPC_PORT="8070"
OE_LONGPOOL_PORT="8072"
OE_WORKERS="4"
#Choose the Odoo version which you want to install. For example: 9.0, 8.0, 7.0 or saas-6. When using 'trunk' the master version will be installed.
#IMPORTANT! This script contains extra libraries that are specifically needed for Odoo 9.0
# Set this to True if you want to install Odoo Enterprise!
IS_ENTERPRISE="False"
#set the superadmin password
OE_SUPERADMIN="admin"
INSTALL_PG_SERVER="True" # if false, than only client will be installed
OE_DB_HOST="localhost"
OE_DB_PORT="5432"
OE_DB_USER="odoo"
OE_DB_PASSWORD="odoo"
PG_VERSION=12
WEB_SERVER="nginx" # or "apache2"
HTTP_PROTOCOL="https"
HTTPS_PORT="443"
INSTALL_CERTIFICATE="False"
PUBLIC_IP="" # SET MANUALLY
DOMAIN_NAME="" # DNS SHOULD BE ALREADY CONFIGURED!
DOMAIN_ALIASES=() # ("www.demo.ventortech.com" "zzz.demo.ventortech.com")
LE_EMAIL="@mail"
LE_CRON_SCRIPT="/etc/cron.daily/certbot-renew"
if [ $IS_ENTERPRISE = "True" ]; then
OE_CONFIG="$OE_INSTALL_DIR/odoo-enterprise.conf"
OE_INIT="odoo-$OE_VERSION-enterprise"
OE_WEBSERV_CONF="odoo-$OE_VERSION-enterprise.conf"
OE_WEBSERVER_HOST="odoo$OE_VERSION-e"
OE_ADDONS_PATH="$OE_INSTALL_DIR/all_addons,$OE_INSTALL_DIR/enterprise/addons,$OE_REPO/addons"
OE_LOG_PATH="$OE_INSTALL_DIR/logs/enterprise"
OE_TEXT="Enterprise"
else
OE_CONFIG="$OE_INSTALL_DIR/odoo.conf"
OE_INIT="odoo-$OE_VERSION"
OE_WEBSERV_CONF="odoo-$OE_VERSION.conf"
OE_WEBSERVER_HOST="odoo$OE_VERSION"
OE_ADDONS_PATH="$OE_INSTALL_DIR/all_addons,$OE_REPO/addons"
OE_LOG_PATH="$OE_INSTALL_DIR/logs/community"
OE_TEXT="Community"
fi
if [ $OE_VERSION = "11.0" ] || [ $OE_VERSION = "12.0" ] || [ $OE_VERSION = "13.0" ] || [ $OE_VERSION = "14.0" ] || [ $OE_VERSION = "15.0" ]; then
PYTHON_VERSION="3"
else
PYTHON_VERSION="2"
fi