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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user