Last active
August 29, 2015 14:16
-
-
Save araddon/5c12cc2d738cad98b5eb to your computer and use it in GitHub Desktop.
syncthing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Syncthing P2P sync service" | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on runlevel [!2345] | |
env STNORESTART=yes | |
env HOME=/home/aaron | |
setuid "aaron" | |
setgid "aaron" | |
exec /usr/local/bin/syncthing | |
respawn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# v 0.02 | |
cd /tmp | |
rm -f syncthing.tar.gz | |
wget https://github.com/syncthing/syncthing/releases/download/v0.10.24/syncthing-linux-amd64-v0.10.24.tar.gz -O syncthing.tar.gz | |
rm -rf /usr/local/bin/syncthing | |
tar -xzf syncthing.tar.gz | |
rm syncthing.tar.gz | |
mv syncthing-linux*/syncthing /usr/local/bin/syncthing | |
chmod +x /usr/local/bin/syncthing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment