diff options
author | makefu <github@syntax-fehler.de> | 2013-02-07 20:26:15 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-02-07 20:26:15 +0100 |
commit | dd6ad821a5a5bcb633b28a6d35e5e612d1f59094 (patch) | |
tree | 51a5281d1cbba3423eb5e9a86eb16d847fac5a6e /retiolum/bin/update-retiolum-hosts | |
parent | 12fa3df06555c4ad6973602998a42446fbb52e70 (diff) | |
parent | 41fb505a5dc5c81965cc45dd00d14fe4150b8a42 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'retiolum/bin/update-retiolum-hosts')
-rwxr-xr-x | retiolum/bin/update-retiolum-hosts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/retiolum/bin/update-retiolum-hosts b/retiolum/bin/update-retiolum-hosts index 2a379459..214ac205 100755 --- a/retiolum/bin/update-retiolum-hosts +++ b/retiolum/bin/update-retiolum-hosts @@ -1,5 +1,5 @@ #! /bin/sh -set -eu +set -euf if test "${nosudo-false}" != true -a `id -u` != 0; then echo "we're going sudo..." >&2 @@ -11,6 +11,4 @@ fi cd $(dirname $(readlink -f $0))/.. mkdir -p /etc/tinc/retiolum/hosts -cp -v -r hosts/* /etc/tinc/retiolum/hosts -pkill -HUP tincd -pkill -ALRM tincd +rsync -va --delete hosts/ /etc/tinc/retiolum/hosts/ |