Browse Source

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
pull/1503/head
dfiore1230 12 years ago
committed by Ruud
parent
commit
bba18d8bc9
  1. 8
      init/ubuntu

8
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

Loading…
Cancel
Save