aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/deb/hue
diff options
context:
space:
mode:
authorSean Mackrory <mackrorysd@apache.org>2013-07-30 11:28:59 -0700
committerSean Mackrory <mackrorysd@apache.org>2013-08-07 13:53:43 -0700
commitae257d12a488b22e37a4336a06c3bf190826a71d (patch)
tree3ab2b96efdd36608e9a810d0e7097ef3c7f4496e /bigtop-packages/src/deb/hue
parente993a3edb779ed4766679ec7e748f1cad212a491 (diff)
BIGTOP-1037. Provide a mechanism to control the sourcing of defaults files
Diffstat (limited to 'bigtop-packages/src/deb/hue')
-rw-r--r--bigtop-packages/src/deb/hue/hue-server.hue.init5
1 files changed, 2 insertions, 3 deletions
diff --git a/bigtop-packages/src/deb/hue/hue-server.hue.init b/bigtop-packages/src/deb/hue/hue-server.hue.init
index e9b11a8e..f104ddba 100644
--- a/bigtop-packages/src/deb/hue/hue-server.hue.init
+++ b/bigtop-packages/src/deb/hue/hue-server.hue.init
@@ -63,9 +63,8 @@ DAEMONUSER=hue # Users to run the daemons as. If this value
# is set start-stop-daemon will chuid the server
# Include defaults if available
-if [ -f /etc/default/$NAME ] ; then
- . /etc/default/$NAME
-fi
+BIGTOP_DEFAULTS_DIR=${BIGTOP_DEFAULTS_DIR-/etc/default}
+[ -n "${BIGTOP_DEFAULTS_DIR}" -a -r ${BIGTOP_DEFAULTS_DIR}/$NAME ] && . ${BIGTOP_DEFAULTS_DIR}/$NAME
# Use this if you want the user to explicitly set 'RUN' in
# /etc/default/