planet vhost
[mirror/dsa-puppet.git] / modules / roles / files / static-mirroring / static-master-ssh-wrap
index 06ab715..6041a56 100755 (executable)
@@ -74,11 +74,11 @@ do_rsync() {
        local remote_host="$1"; shift
 
        local args="--server --sender -vltrze.iLsf --safe-links ."
-       if [ "$*" = "$args -new-/" ] ; then
+       if [ "$*" = "$args -new-/" ] || [ "$*" = "$args ./-new-/" ] ; then
                local path="$BASEDIR/current-push"
                info "serving $remote_host with $path"
                rsync $args "$path/."
-       elif [ "$*" = "$args . -live-/" ] ; then
+       elif [ "$*" = "$args . -live-/" ] || [ "$*" = "$args . ./-live-/" ] ; then
                local path="$BASEDIR/current-live"
                info "host $remote_host wants $path, acquiring lock"
                lock 200 "$path" 0