-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sh
More file actions
executable file
·59 lines (50 loc) · 1.13 KB
/
config.sh
File metadata and controls
executable file
·59 lines (50 loc) · 1.13 KB
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
#!/bin/bash
CLIENT=$1
#-----------------------------------------
#
ME=$(hostname)
if [ $ME = "ocean" ]
then
DOMAIN=wombat.local
CYDUSER=michael
CYDGROUP=michael
SSL=no
elif [ $ME = "Common" ]
then
DOMAIN=cyder.com.au
CYDGROUP=support
CYDUSER=support
SSL=yes
else
echo "not sure where I am"
exit 1
fi
#-----------------------------------------
#
LANG=en_AU
#-----------------------------------------
#
MASTER=/opt/odoo-multi
CLIENTS=$MASTER/clients
WORK=$CLIENTS/$CLIENT
DATA=$WORK/data
CONF=${CLIENT}.conf
#-----------------------------------------
#
# Modules
#MODULES="contacts,sale_management,mrp,stock,purchase,crm,project,repair,maintenance,survey,hr_attendance,hr,fleet,calendar,note"
MODULES="l10n_au,base_automation,contacts,sale_management,mrp,stock,purchase,crm,project,fleet"
MODULES="l10n_au,base_automation"
PORTFILE=$MASTER/.port
#-----------------------------------------
#
# Addons
CLIENT_ADDONS=$WORK/${CLIENT}_addons
APPROVED_ADDONS=$MASTER/tpa/approved
TEST_ADDONS=$MASTER/tpa/testing
#-----------------------------------------
#
# functions
getdate() {
echo $(date '+%Y%m%d-%H%M')
}