From bba18d8bc90dc84bd88ffbdef474e501475d5498 Mon Sep 17 00:00:00 2001 From: dfiore1230 Date: Thu, 14 Mar 2013 17:08:00 -0300 Subject: [PATCH] added the ability to source /etc/default/couchpotato file added the ability to source /etc/default/couchpotato file by testing for file existence and source when available added lines 39 - 45 --- init/ubuntu | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init/ubuntu b/init/ubuntu index 495efe69..01e1352c 100644 --- a/init/ubuntu +++ b/init/ubuntu @@ -36,6 +36,14 @@ DAEMON_OPTS=" CouchPotato.py --daemon --pid_file=${PID_FILE}" ############### END EDIT ME ################## +# Check for existance of defaults file +# and utilze if available +if [ -e "/etc/default/couchpotato" ] +then + unset DAEMON_OPTS + . /etc/default/couchpotato +fi + test -x $DAEMON || exit 0 set -e