projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sleep for a random time, up to two minutes, in ud-replicate when not called
[mirror/userdir-ldap.git]
/
ud-replicate
diff --git
a/ud-replicate
b/ud-replicate
index
26818ed
..
094dd46
100755
(executable)
--- a/
ud-replicate
+++ b/
ud-replicate
@@
-1,4
+1,4
@@
-#! /bin/sh
+#! /bin/
ba
sh
# Copyright (c) 1999-2001 Jason Gunthorpe <jgg@debian.org>
# Copyright (c) 2002-2003,2006 Ryan Murray <rmurray@debian.org>
# Copyright (c) 1999-2001 Jason Gunthorpe <jgg@debian.org>
# Copyright (c) 2002-2003,2006 Ryan Murray <rmurray@debian.org>
@@
-24,6
+24,7
@@
set -e
if [ -z "$TERM" -o "$TERM" = "dumb" ]
then
exec > /dev/null 2>&1
if [ -z "$TERM" -o "$TERM" = "dumb" ]
then
exec > /dev/null 2>&1
+ sleep $(( $RANDOM % 120 ))
else
verbose=-v
fi
else
verbose=-v
fi
@@
-39,7
+40,7
@@
lockfile -r 1 -l 3600 lock
trap "rm -f lock" exit
case $HOST in
trap "rm -f lock" exit
case $HOST in
-
*$LOCALSYNCON*
)
+
$LOCALSYNCON
)
udhost=
;;
*)
udhost=
;;
*)