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