projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
planet vhost
[mirror/dsa-puppet.git]
/
modules
/
roles
/
files
/
static-mirroring
/
static-master-ssh-wrap
diff --git
a/modules/roles/files/static-mirroring/static-master-ssh-wrap
b/modules/roles/files/static-mirroring/static-master-ssh-wrap
index
06ab715
..
6041a56
100755
(executable)
--- a/
modules/roles/files/static-mirroring/static-master-ssh-wrap
+++ b/
modules/roles/files/static-mirroring/static-master-ssh-wrap
@@
-74,11
+74,11
@@
do_rsync() {
local remote_host="$1"; shift
local args="--server --sender -vltrze.iLsf --safe-links ."
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/."
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
local path="$BASEDIR/current-live"
info "host $remote_host wants $path, acquiring lock"
lock 200 "$path" 0