X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ffiles%2Fstatic-mirroring%2Fstatic-master-ssh-wrap;h=06ab715f4d95460222b43da34d858f997878b34c;hb=f42cb0499ff05950c567b58393e81ffe77292b49;hp=94a41f407ded12c4bd3f48ebb8dc5410a111b1de;hpb=5cdbc2499b81d21abd0bcdf4df203f57a507a6ae;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/files/static-mirroring/static-master-ssh-wrap b/modules/roles/files/static-mirroring/static-master-ssh-wrap index 94a41f407..06ab715f4 100755 --- a/modules/roles/files/static-mirroring/static-master-ssh-wrap +++ b/modules/roles/files/static-mirroring/static-master-ssh-wrap @@ -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."