You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by fr...@apache.org on 2017/04/20 18:40:29 UTC
[40/44] incubator-trafficcontrol git commit: make env vars
overridable and install goose
make env vars overridable and install goose
(cherry picked from commit 2d2e2fdf588febedc2ca0e0479e2a8a28859cf4a)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/eea25118
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/eea25118
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/eea25118
Branch: refs/heads/2.0.x
Commit: eea25118a7e88d794707fdeda459214ac8e9dba3
Parents: 5d795c9
Author: Dan Kirkwood <da...@gmail.com>
Authored: Thu Apr 13 16:47:04 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Wed Apr 19 15:36:19 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/eea25118/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