...and what about:

BT_TRACKER_BIN=`(which bittorrent-tracker || which bttrack) 2>/dev/null`

(the same for maketorrent and launchmany)

In this way it works also if you have bt binaries in /usr/local/bin. ;-)

Cheers,
-Andrea

Bernard Li wrote:
> Hi Andrea:
>  
> I propose changes similar to the following:
> 
>     if [ -x /usr/bin/bittorrent-tracker ]; then
>       BT_TRACKER_BIN=/usr/bin/bittorrent-tracker
>     else
>       BT_TRACKER_BIN=/usr/bin/bttrack
>     fi
>  
> This prevents the following messages from showing up when you execute 
> /etc/init.dsystemimager-server-bittorrent [start|stop]:
> 
> which: no maketorrent-console in 
> (/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:)
> which: no launchmany-console in 
> (/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:)
> which: no launchmany-curses in 
> (/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:)
>  
> What do you think?
>  
> Cheers,
>  
> Bernard
> 


_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to