File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 15
15
16
16
LOG=" pgo-installer.log"
17
17
18
+ export PGORELEASE=2.5
19
+
18
20
echo " installing deps if necessary" | tee -a $LOG
19
21
20
22
which wget > /dev/null 2> /dev/null
@@ -66,23 +68,14 @@ echo "setting up directory structure" | tee -a $LOG
66
68
mkdir -p $HOME /odev/src $HOME /odev/bin $HOME /odev/pkg
67
69
mkdir -p $GOPATH /src/github.com/crunchydata/postgres-operator
68
70
69
- echo " installing deps if necessary" | tee -a $LOG
70
-
71
- go get github.com/blang/expenv
72
- if [[ $? -ne 0 ]]; then
73
- echo " problem installing expenv dependency" | tee -a $LOG
74
- exit 1
75
- fi
76
-
77
-
78
71
echo " installing pgo server config" | tee -a $LOG
79
- wget --quiet https://github.com/CrunchyData/postgres-operator/releases/download/2.4 /postgres-operator.2.4. tar.gz -O /tmp/postgres-operator.2.4 .tar.gz
72
+ wget --quiet https://github.com/CrunchyData/postgres-operator/releases/download/$PGORELEASE /postgres-operator.$PGORELEASE . tar.gz -O /tmp/postgres-operator.$PGORELEASE .tar.gz
80
73
if [[ $? -ne 0 ]]; then
81
74
echo " problem getting pgo server config"
82
75
exit 1
83
76
fi
84
77
cd $COROOT
85
- tar xzf /tmp/postgres-operator.2.5 .tar.gz
78
+ tar xzf /tmp/postgres-operator.$PGORELEASE .tar.gz
86
79
if [[ $? -ne 0 ]]; then
87
80
echo " problem getting 2.5 release"
88
81
exit 1
@@ -93,6 +86,9 @@ echo "installing pgo client" | tee -a $LOG
93
86
mv pgo $GOBIN
94
87
mv pgo-mac $GOBIN
95
88
mv pgo.exe $GOBIN
89
+ mv expenv.exe $GOBIN
90
+ mv expenv-mac $GOBIN
91
+ mv expenv $GOBIN
96
92
97
93
echo -n " do you want to create the demo namespace? [yes no] "
98
94
read REPLY
You can’t perform that action at this time.
0 commit comments