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
This commit is contained in:
dfiore1230
2013-03-14 17:08:00 -03:00
committed by Ruud
parent 0494e5fc8f
commit bba18d8bc9

View File

@@ -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