Updated Branches:
  refs/heads/cdh-1.2.0+24_intuit [created] e39c7a82f

CDH-7647. Fix $FLUME_DIR/conf/ symlink


Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/e39c7a82
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/e39c7a82
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/e39c7a82

Branch: refs/heads/cdh-1.2.0+24_intuit
Commit: e39c7a82f793215fbbccee9049252f7edb9527a2
Parents: 2b26f36
Author: Patrick Taylor Ramsey <[email protected]>
Authored: Tue Jul 24 15:53:02 2012 -0700
Committer: Hari Shreedharan <[email protected]>
Committed: Fri Sep 7 16:28:24 2012 -0700

----------------------------------------------------------------------
 cloudera/install_flume.sh |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flume/blob/e39c7a82/cloudera/install_flume.sh
----------------------------------------------------------------------
diff --git a/cloudera/install_flume.sh b/cloudera/install_flume.sh
index 2ef4aac..2005c60 100755
--- a/cloudera/install_flume.sh
+++ b/cloudera/install_flume.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.
@@ -102,8 +102,9 @@ DOC_DIR_PREFIX=${DOC_DIR_PREFIX:-$PREFIX}
 FLUME_DIR=${FLUME_DIR:-/usr/lib/flume-ng}
 BIN_DIR=${BIN_DIR:-/usr/lib/flume-ng/bin}
 CONF_DIR=/etc/flume-ng/
-CONF_DIST_DIR=/etc/flume-ng/conf.dist/
+CONF_DIST_DIR=${CONF_DIR}/conf.dist/
 ETC_DIR=${ETC_DIR:-/etc/flume-ng}
+OG_ETC_DIR=${OG_ETC_DIR:-/etc/flume}
 
 install -d -m 0755 ${PREFIX}/${FLUME_DIR}
 
@@ -149,8 +150,11 @@ install -d -m 0755 $PREFIX/$ETC_DIR/conf.empty
 sed -i -e "s|flume\.log\.dir=.*|flume.log.dir=/var/log/flume-ng|" 
$PREFIX/$ETC_DIR/conf.empty/log4j.properties
 touch $PREFIX/$ETC_DIR/conf.empty/flume.conf
 
+# In case people expect flume-ng configs at /etc/flume/conf
+install -d -m 0755 $PREFIX/$OG_ETC_DIR
+
 unlink $PREFIX/$FLUME_DIR/conf || /bin/true
-ln -s /etc/flume/conf $PREFIX/$FLUME_DIR/conf
+ln -s $ETC_DIR/conf $PREFIX/$FLUME_DIR/conf
 
 # Docs
 install -d -m 0755 ${DOC_DIR_PREFIX}/${DOC_DIR}

Reply via email to