Tidying
This commit is contained in:
parent
08b2b1a795
commit
aaf2f67f0a
|
@ -13,7 +13,7 @@
|
||||||
# License
|
# 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
|
# 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
|
# 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
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_syncthing {
|
function install_syncthing_repo {
|
||||||
apt-get -yq install curl
|
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 -
|
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
|
echo "deb http://apt.syncthing.net/ syncthing release" | tee /etc/apt/sources.list.d/syncthing.list
|
||||||
apt-get update
|
apt-get update
|
||||||
|
}
|
||||||
|
|
||||||
|
function install_syncthing {
|
||||||
|
install_syncthing_repo
|
||||||
apt-get -yq install syncthing
|
apt-get -yq install syncthing
|
||||||
|
|
||||||
# This probably does need to run as root so that it can access the Sync directories
|
# This probably does need to run as root so that it can access the Sync directories
|
||||||
|
|
Loading…
Reference in New Issue