]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Maybe this is better
authorPeter Palfrader <peter@palfrader.org>
Sat, 8 Dec 2012 18:15:31 +0000 (19:15 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sat, 8 Dec 2012 18:15:31 +0000 (19:15 +0100)
modules/roles/files/static-mirroring/static-master-ssh-wrap

index 94a41f407ded12c4bd3f48ebb8dc5410a111b1de..06ab715f4d95460222b43da34d858f997878b34c 100755 (executable)
@@ -77,12 +77,12 @@ do_rsync() {
        if [ "$*" = "$args -new-/" ] ; then
                local path="$BASEDIR/current-push"
                info "serving $remote_host with $path"
-               rsync $args "$path"
+               rsync $args "$path/."
        elif [ "$*" = "$args . -live-/" ] ; then
                local path="$BASEDIR/current-live"
                info "host $remote_host wants $path, acquiring lock"
                lock 200 "$path" 0
-               rsync $args "$path"
+               rsync $args "$path/."
        else
                info "NOT allowed for $remote_host: rsync $*"
                echo >&2 "This rsync command ($@) not allowed."