Skip to content
Snippets Groups Projects
Commit aaf2f67f authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidying

parent 08b2b1a7
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
# License
# =======
#
# Copyright (C) 2014-2016 Bob Mottram <bob@freedombone.net>
# Copyright (C) 2014-2017 Bob Mottram <bob@freedombone.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
......@@ -484,12 +484,19 @@ function configure_firewall_for_syncthing {
mark_completed $FUNCNAME
}
function install_syncthing {
apt-get -yq install curl
function install_syncthing_repo {
if [ -f /etc/apt/sources.list.d/syncthing.list ]; then
return
fi
apt-get -yq install curl
curl -s https://syncthing.net/release-key.txt | apt-key add -
echo "deb http://apt.syncthing.net/ syncthing release" | tee /etc/apt/sources.list.d/syncthing.list
apt-get update
}
function install_syncthing {
install_syncthing_repo
apt-get -yq install syncthing
# This probably does need to run as root so that it can access the Sync directories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment