13 lines
407 B
Bash
13 lines
407 B
Bash
## Configuration
|
|
export_env SYNCTHING_CONFIG /host/etc/syncthing
|
|
export_env SYNCTHING_VERSION 0.12.23
|
|
|
|
# Syncthing
|
|
cd /opt
|
|
curl -L -o syncthing.tar.gz http://archive.syncthing.net/v$SYNCTHING_VERSION/syncthing-linux-amd64-v$SYNCTHING_VERSION.tar.gz
|
|
tar -xzvf syncthing.tar.gz
|
|
rm -f syncthing.tar.gz
|
|
mv syncthing-linux-amd64-v* syncthing
|
|
rm -rf syncthing/etc
|
|
rm -rf syncthing/*.pdf
|
|
mkdir -p $SYNCTHING_CONFIG |