Add delays to allow refint to complete

This commit is contained in:
Howard Chu 2009-06-29 23:25:19 +00:00
parent 0f5378c8f7
commit 52cb7af2f6

View file

@ -186,6 +186,10 @@ deleteoldrdn:1
newsuperior: $BASEDN
EOF
# refint runs in a background thread, so it most likely won't complete
# before the modify returns. Give it some time to execute.
sleep 1
echo "Re-search the entire database..."
echo "# Re-search the entire database..." >> $SEARCHOUT
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
@ -208,6 +212,8 @@ deleteoldrdn:1
newsuperior: $BASEDN
EOF
sleep 1
echo "Re-search the entire database..."
echo "# Re-search the entire database..." >> $SEARCHOUT
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
@ -227,6 +233,8 @@ dn: cn=Baby Herman,ou=Toons,$BASEDN
changetype: delete
EOF
sleep 1
echo "Re-search the entire database..."
echo "# Re-search the entire database..." >> $SEARCHOUT
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \