resilio Upgrade Script for Linux: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The following script will download the latest version of | The following script will download the latest version of resilio and overwrite the current binary file.<br /><br /> | ||
The script assumes the follolwing: | The script assumes the follolwing: | ||
* that | * that resilio is install in the folder /opt/resilio/bin/ | ||
* the device is an ARM processor | * the device is an ARM processor | ||
'''NOTE''': Based on ARM processor. | |||
<pre> | <pre> | ||
Line 14: | Line 16: | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
service | service resilio stop | ||
sleep 3 | sleep 3 | ||
cd /opt/ | cd /opt/resilio/bin/ | ||
wget https://download-cdn.getsync.com/stable/linux-arm/ | wget https://download-cdn.getsync.com/stable/linux-arm/resilio-sync_arm.tar.gz | ||
# wget https://download-cdn.getsync.com/stable/linux-i386/resilio-sync_i386.tar.gz | |||
# wget https://download-cdn.getsync.com/stable/linux-x64/resilio-sync_x64.tar.gz | |||
tar xvf | tar xvf resilio-sync_arm.tar.gz | ||
rm -f | rm -f resilio-sync_arm.tar.gz | ||
service | service resilio start | ||
cd $DIR | cd $DIR | ||
</pre> | </pre> | ||
[[Category : | [[Category : resilio]] [[Category : Linux ]] |
Latest revision as of 00:31, 15 September 2016
The following script will download the latest version of resilio and overwrite the current binary file.
The script assumes the follolwing:
- that resilio is install in the folder /opt/resilio/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 resilio stop sleep 3 cd /opt/resilio/bin/ wget https://download-cdn.getsync.com/stable/linux-arm/resilio-sync_arm.tar.gz # wget https://download-cdn.getsync.com/stable/linux-i386/resilio-sync_i386.tar.gz # wget https://download-cdn.getsync.com/stable/linux-x64/resilio-sync_x64.tar.gz tar xvf resilio-sync_arm.tar.gz rm -f resilio-sync_arm.tar.gz service resilio start cd $DIR