Skip to content

Commit

Permalink
Merge pull request #8 from exrat/master
Browse files Browse the repository at this point in the history
rectif script debug port scgi & typo
  • Loading branch information
xavier84 committed Jan 21, 2019
2 parents 50fc42d + a744e11 commit c3c920f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/scripts/check-rtorrent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ INCLUDES="/tmp/ratxabox/includes"
FONCCONTROL
echo "";
set "266"; FONCTXT "$1"; echo -e "${CBLUE}$TXT1${CEND} "
set "214"; FONCTXT "$1"; echo -e -n "${CGREEN}$TXT1 :${CEND} "
set "214"; FONCTXT "$1"; echo -e -n "${CGREEN}$TXT1 ${CEND} "
read -r USERNAME

if [[ $(grep "$USERNAME:" -c /etc/shadow) != "1" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion includes/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ FONCRAPPORT () {
}

FONCTESTRTORRENT () {
SCGI="$(sed -n '/^scgi_port/p' /home/"$USERNAME"/.rtorrent.rc | cut -b 23-)"
SCGI="$(sed -n '/^network.scgi.open_port/p' /home/"$USERNAME"/.rtorrent.rc | cut -b 36-)"
PORT_LISTENING=$(netstat -aultnp | awk '{print $4}' | grep -E ":$SCGI\$" -c)
RTORRENT_LISTENING=$(netstat -aultnp | sed -n '/'$SCGI'/p' | grep rtorrent -c)

Expand Down

0 comments on commit c3c920f

Please sign in to comment.