Btsync now pulled from ppa - function fixed

imrovement
btsync
fix

#1

BTSync has now been fixed and improved. Among the update are the following:



Verify & Review


Header refresh issues and bad BTSync package install in v2.1.1
#2

Is there a way to apply this fix if we already have it installed?


#3

The best way to go about the updating of this (until the api is set) would be to do the following:
I would advise running this as root - so, just a quick su should get you on root.

cd /usr/local/bin && { curl -O -s https://raw.githubusercontent.com/Swizards/QuickBox/qb_u_1604/commands/system/packages/installpackage-btsync ; cd; }
cd /usr/local/bin && { curl -O -s https://raw.githubusercontent.com/Swizards/QuickBox/qb_u_1604/commands/system/packages/removepackage-btsync ; cd; }
chmod +x /usr/local/bin/*
cd /srv/rutorrent/home/inc && { curl -O -s https://raw.githubusercontent.com/Swizards/QuickBox/qb_u_1604/rutorrent/home/inc/panel.menu.php ; cd; }
cd /srv/rutorrent/home/inc && { curl -O -s https://raw.githubusercontent.com/Swizards/QuickBox/qb_u_1604/rutorrent/home/inc/config.php ; cd; }
cd /srv/rutorrent/home && { curl -O -s https://raw.githubusercontent.com/Swizards/QuickBox/qb_u_1604/rutorrent/home/index.php ; cd; }
QBVERSION="2.1.1"
Reth0=$(ifconfig | grep -m 1 "Link encap" | sed 's/[ \t].*//;/^\(lo\|\)$/d' | awk '{ print $1 '});
IFACE=$(echo -n "${Reth0}");
sed -i -e "s/eth0/$IFACE/g" \
         -e "s/qb-version/$QBVERSION/g" /srv/rutorrent/home/inc/config.php