summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@destroy>2013-01-31 20:46:22 +0100
committerroot <root@destroy>2013-01-31 20:46:22 +0100
commit367edf6e568b9d9ac094693e2c6345f120e2a99c (patch)
tree3430771d9931286d5a51544f94b9b047ebfebb2e
parent0b2528347d6ece0d6bac5b51982d78cdb002c8e8 (diff)
//retiolum update-retiolum-hosts: s/cp/rsync/
Now old hosts will be removed from /etc/tinc/retiolum/hosts.
-rwxr-xr-xretiolum/bin/update-retiolum-hosts4
1 files changed, 2 insertions, 2 deletions
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/