-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·38 lines (32 loc) · 921 Bytes
/
install.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
#!/bin/bash
maindir="/opt/odoo/"
version="10.0"
dirs=(
"3rd-addons"
"custom"
)
main="https://github.com/genweb2/gbs.git"
# change director and create a custom folder named "addons"
mkdir main && cd addons
git clone -b 10.0 --single-branch $main
echo "Repository: "$main " ready"
cd ../ && mkdir custom && cd custom
custom=(
"https://github.com/OCA/operating-unit.git"
"https://github.com/OCA/hr.git"
"https://github.com/OCA/web.git"
"https://github.com/OCA/server-tools.git"
"https://bitbucket.org/matiarrahman/odoo-community-addons.git"
"https://github.com/OCA/sale-workflow.git"
"https://github.com/OCA/purchase-workflow.git"
"https://github.com/OCA/partner-contact.git"
)
for element in ${custom[@]}
do
git clone -b 10.0 --single-branch $element
echo
done
echo "--------------------------------------"
echo "No of reporo downloads:" ${#custom[@]}
echo ""
echo ${custom[@]}