-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallDependencies.sh
executable file
·62 lines (44 loc) · 1.25 KB
/
installDependencies.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
#Color code for shell script
Red='\033[0;31m'
Green='\033[0;32m'
Color_Off='\033[0m'
export ROOT_DIR=$PWD/..
# Install go ubuntu
installGo(){
echo -e "${Green}"
echo "------------------------"
echo "------------------------"
echo "Downloading Go Packages"
echo "------------------------"
echo "------------------------"
echo -e "${Color_Off}"
curl -O https://dl.google.com/go/go1.15.7.linux-amd64.tar.gz
chmod +x go1.15.7.linux-amd64.tar.gz
sha256sum go1.15.7.linux-amd64.tar.gz
echo -e "${Green}"
echo "------------------"
echo "------------------"
echo "Unzip Go Packages"
echo "------------------"
echo "------------------"
echo -e "${Color_Off}"
tar xvf go1.15.7.linux-amd64.tar.gz
sudo chown -R root:root ./go
sudo mv go /opt/go
sudo rm -r go1.15.7.linux-amd64.tar.gz
echo -e "${Green}"
echo "-------------------------"
echo "-------------------------"
echo "Successfully Installed Go"
echo "-------------------------"
echo "-------------------------"
echo -e "${Color_Off}"
# echo "export GOPATH=/opt/gopath" >> ~/.profile
# source ~/.profile
}
moveFabricFiles(){
sudo cp -r ../bin/* /opt/go/bin/
}
installGo
moveFabricFiles