You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by el...@apache.org on 2017/01/11 21:34:31 UTC

[7/8] incubator-trafficcontrol git commit: goTM will now check if java TM is installed before installing. If java TM is installed, go TM will not install

goTM will now check if java TM is installed before installing.  If java TM is installed, go TM will not install

(cherry picked from commit 749624344e9dc918631d3773018b7b014bd5a4c8)


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

Branch: refs/heads/master
Commit: 412edb136f97481dc472f828de17631845306d5c
Parents: 7aa859e
Author: David Neuman <ne...@apache.org>
Authored: Wed Jan 11 15:17:09 2017 +0000
Committer: David Neuman <da...@gmail.com>
Committed: Wed Jan 11 16:02:23 2017 +0000

----------------------------------------------------------------------
 traffic_monitor/experimental/build/traffic_monitor.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/412edb13/traffic_monitor/experimental/build/traffic_monitor.spec
----------------------------------------------------------------------
diff --git a/traffic_monitor/experimental/build/traffic_monitor.spec b/traffic_monitor/experimental/build/traffic_monitor.spec
index 2351379..dd185ce 100644
--- a/traffic_monitor/experimental/build/traffic_monitor.spec
+++ b/traffic_monitor/experimental/build/traffic_monitor.spec
@@ -111,6 +111,15 @@ if [ -e /etc/init.d/traffic_monitor ]; then
 	/sbin/service traffic_monitor stop
 fi
 
+#don't install over the top of java TM.  This is a workaround since yum doesn't respect the Conflicts tag.
+if [[ $(rpm -q traffic_monitor --qf "%{VERSION}-%{RELEASE}") < 1.9.0 ]]
+then
+    echo -e "\n****************\n"
+    echo "A java version of traffic_monitor is installed.  Please backup/remove that version before installing the golang version of traffic_monitor."
+    echo -e "\n****************\n"
+    exit 1
+fi
+
 %post
 
 /sbin/chkconfig --add traffic_monitor