Browse Source

Ooops. PORT and CPAPI got mixed around in FreeBSD init-script.

pull/381/head
Joachim Tingvold 13 years ago
parent
commit
9fe11355a9
  1. 4
      init/freebsd

4
init/freebsd

@ -37,8 +37,8 @@ load_rc_config ${name}
WGET="/usr/local/bin/wget" # You need wget for this script to safely shutdown CouchPotato.
if [ -e "${couchpotato_conf}" ]; then
HOST=`cat "${couchpotato_conf}"|grep -A14 "\[core\]"|egrep "^host"|perl -wple 's/^host = (.*)$/$1/'`
PORT=`cat "${couchpotato_conf}"|grep -A14 "\[core\]"|egrep "^api_key"|perl -wple 's/^api_key = (.*)$/$1/'`
CPAPI=`cat "${couchpotato_conf}"|grep -A14 "\[core\]"|egrep "^port"|perl -wple 's/^port = (.*)$/$1/'`
PORT=`cat "${couchpotato_conf}"|grep -A14 "\[core\]"|egrep "^port"|perl -wple 's/^port = (.*)$/$1/'`
CPAPI=`cat "${couchpotato_conf}"|grep -A14 "\[core\]"|egrep "^api_key"|perl -wple 's/^api_key = (.*)$/$1/'`
fi
status_cmd="${name}_status"

Loading…
Cancel
Save