Skip to content

Commit 6a0734e

Browse files
author
jmccormick2001
committed
update docs for alog and olog commands, update install deps script to be smarter
1 parent e666312 commit 6a0734e

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

bin/get-deps.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,22 @@
1515

1616
echo "Getting project dependencies..."
1717

18-
sudo yum -y install mercurial golang
19-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
20-
#go get github.com/tools/godep
18+
#sudo yum -y install mercurial golang
19+
which go
20+
if [ $? -eq 1 ]; then
21+
echo "installing golang..."
22+
sudo yum -y install golang
23+
fi
24+
25+
which dep
26+
if [ $? -eq 1 ]; then
27+
echo "installing dep"
28+
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
29+
fi
30+
2131
go get github.com/blang/expenv
2232

23-
dep ensure
24-
#godep restore
33+
#dep ensure
2534

2635
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2736

hugo/content/installation/manual-installation.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export PGO_CA_CERT=$COROOT/conf/apiserver/server.crt
2626
export PGO_CLIENT_CERT=$COROOT/conf/apiserver/server.crt
2727
export PGO_CLIENT_KEY=$COROOT/conf/apiserver/server.key
2828
alias setip='export CO_APISERVER_URL=https://`kubectl get service postgres-operator -o=jsonpath="{.spec.clusterIP}"`:8443'
29-
alias alog='kubectl log `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c apiserver'
30-
alias olog='kubectl log `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c operator'
29+
alias alog='kubectl logs `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c apiserver'
30+
alias olog='kubectl logs `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c operator'
3131
....
3232

3333
When deploying on Openshift Container Platform, the CO_CMD environment

0 commit comments

Comments
 (0)