From ae257d12a488b22e37a4336a06c3bf190826a71d Mon Sep 17 00:00:00 2001 From: Sean Mackrory Date: Tue, 30 Jul 2013 11:28:59 -0700 Subject: BIGTOP-1037. Provide a mechanism to control the sourcing of defaults files --- bigtop-packages/src/deb/hue/hue-server.hue.init | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bigtop-packages/src/deb/hue') 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/ -- cgit v1.2.3