You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/04/17 17:09:44 UTC

[2/9] incubator-trafficcontrol git commit: make env vars overridable and install goose

make env vars overridable and install goose


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/2d2e2fdf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/2d2e2fdf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/2d2e2fdf

Branch: refs/heads/master
Commit: 2d2e2fdf588febedc2ca0e0479e2a8a28859cf4a
Parents: 5eb22b1
Author: Dan Kirkwood <da...@gmail.com>
Authored: Thu Apr 13 16:47:04 2017 -0600
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Mon Apr 17 11:09:07 2017 -0600

----------------------------------------------------------------------
 traffic_ops/install/bin/postinstall | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/2d2e2fdf/traffic_ops/install/bin/postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/postinstall b/traffic_ops/install/bin/postinstall
index 71ad513..40c3cd7 100755
--- a/traffic_ops/install/bin/postinstall
+++ b/traffic_ops/install/bin/postinstall
@@ -23,11 +23,13 @@ cpanm Carton
 # carton installs all the perl dependencies in cpanfile
 cd /opt/traffic_ops/app
 
-export POSTGRES_HOME=/usr/pgsql-9.6
-export GOPATH=/usr/local
-export PERL5LIB=/opt/traffic_ops/app/lib:/opt/traffic_ops/app/local/lib/perl5
+export POSTGRES_HOME=${POSTGRES_HOME:-/usr/pgsql-9.6}
 /usr/local/bin/carton
 
+export GOPATH=${GOPATH:-/usr/local}
+go get bitbucket.org/liamstask/goose/cmd/goose
+
+export PERL5LIB=/opt/traffic_ops/app/lib:/opt/traffic_ops/app/local/lib/perl5
 /opt/traffic_ops/install/bin/_postinstall "$@"
 
 # should all be owned by trafops user