]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Allow the rsync with /. at the end instead
authorPeter Palfrader <peter@palfrader.org>
Sat, 8 Dec 2012 17:49:39 +0000 (18:49 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sat, 8 Dec 2012 17:49:39 +0000 (18:49 +0100)
modules/roles/files/static-mirroring/static-mirror-ssh-wrap

index b64d838c7678c553f4b3d8cb2b2936a34257105b..b199ce981b9cba448ba8e533094691f680b5bc91 100755 (executable)
@@ -76,7 +76,7 @@ do_rsync() {
 
        if [ -e "$COMPONENTLIST" ]; then
                for path in $(awk -v host="$(hostname -f)" '$2 == host {print $3}' $COMPONENTLIST); do
-                       allowed_rsyncs+=("--server --sender -tre.iLsf . $path")
+                       allowed_rsyncs+=("--server --sender -tre.iLsf . $path/.")
                done
        fi
        for cmd_idx in ${!allowed_rsyncs[*]}; do