resilio Upgrade Script for Linux: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
* that btSync is install in the folder /opt/btsync/bin/ | * that btSync is install in the folder /opt/btsync/bin/ | ||
* the device is an ARM processor | * the device is an ARM processor | ||
'''NOTE''': Based on ARM processor. | |||
<pre> | <pre> |
Revision as of 03:40, 27 February 2016
The following script will download the latest version of btSync and overwrite the current binary file.
The script assumes the follolwing:
- that btSync is install in the folder /opt/btsync/bin/
- the device is an ARM processor
NOTE: Based on ARM processor.
#!/bin/bash if [[ ${EUID} -ne 0 ]]; then echo " !!! This tool must be run as root" exit 1 fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" service btsync stop sleep 3 cd /opt/btsync/bin/ wget https://download-cdn.getsync.com/stable/linux-arm/BitTorrent-Sync_arm.tar.gz tar xvf BitTorrent-Sync_arm.tar.gz rm -f BitTorrent-Sync_arm.tar.gz service btsync start cd $DIR