From 33bda164582071a054a49d6206fcd9910a46b52a Mon Sep 17 00:00:00 2001 From: Hugo Josefson Date: Wed, 12 Oct 2016 20:21:17 +0200 Subject: [PATCH] Add install-resilio-sync. --- install-resilio-sync | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 install-resilio-sync diff --git a/install-resilio-sync b/install-resilio-sync new file mode 100755 index 0000000..c002efc --- /dev/null +++ b/install-resilio-sync @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +which aptitude || sudo apt-get install -y aptitude + +wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add - +echo deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free | sudo tee /etc/apt/sources.list.d/resilio-sync.list +sudo aptitude update +sudo aptitude install -y resilio-sync + +# Enable for current user +sudo sed -r 's/^WantedBy=multi-user.target$/WantedBy=default.target/g' -i /usr/lib/systemd/user/resilio-sync.service +systemctl --user enable resilio-sync +systemctl --user start resilio-sync + +echo Resilio Sync is now available for $USER on http://localhost:8888/gui \ No newline at end of file