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 1515
1616LOG=" pgo-installer.log"
1717
18+ export PGORELEASE=2.5
19+
1820echo " installing deps if necessary" | tee -a $LOG
1921
2022which wget > /dev/null 2> /dev/null
@@ -66,23 +68,14 @@ echo "setting up directory structure" | tee -a $LOG
6668mkdir -p $HOME /odev/src $HOME /odev/bin $HOME /odev/pkg
6769mkdir -p $GOPATH /src/github.com/crunchydata/postgres-operator
6870
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-
7871echo " 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
8073if [[ $? -ne 0 ]]; then
8174 echo " problem getting pgo server config"
8275 exit 1
8376fi
8477cd $COROOT
85- tar xzf /tmp/postgres-operator.2.5 .tar.gz
78+ tar xzf /tmp/postgres-operator.$PGORELEASE .tar.gz
8679if [[ $? -ne 0 ]]; then
8780 echo " problem getting 2.5 release"
8881 exit 1
@@ -93,6 +86,9 @@ echo "installing pgo client" | tee -a $LOG
9386mv pgo $GOBIN
9487mv pgo-mac $GOBIN
9588mv pgo.exe $GOBIN
89+ mv expenv.exe $GOBIN
90+ mv expenv-mac $GOBIN
91+ mv expenv $GOBIN
9692
9793echo -n " do you want to create the demo namespace? [yes no] "
9894read REPLY
You can’t perform that action at this time.
0 commit comments