From 367edf6e568b9d9ac094693e2c6345f120e2a99c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 31 Jan 2013 20:46:22 +0100 Subject: //retiolum update-retiolum-hosts: s/cp/rsync/ Now old hosts will be removed from /etc/tinc/retiolum/hosts. --- retiolum/bin/update-retiolum-hosts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'retiolum/bin') diff --git a/retiolum/bin/update-retiolum-hosts b/retiolum/bin/update-retiolum-hosts index e9fca25c..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,4 +11,4 @@ fi cd $(dirname $(readlink -f $0))/.. mkdir -p /etc/tinc/retiolum/hosts -cp -v -r hosts/* /etc/tinc/retiolum/hosts +rsync -va --delete hosts/ /etc/tinc/retiolum/hosts/ -- cgit v1.2.3