Files
docker-deployment/build/scripts/btsync.sh

18 lines
380 B
Bash
Executable File

#!/bin/bash
set -e
source /build/config
set -x
## Configuration
export_env BTSYNC_CONFIG /host/etc/btsync/btsync.conf
export_env BTSYNC_DATA /host/var/btsync
## BTsync
cd opt
wget -O btsync.tar.gz http://download-lb.utorrent.com/endpoint/btsync/os/linux-x64/track/stable
tar xzf btsync.tar.gz
## Remove installation files
if [ $MODE == "minimal" ]; then
rm btsync.tar.gz
fi