]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test002-populate
More streamlining.
[openldap] / tests / scripts / test002-populate
index 3d6fea0806e3cac3407a0c2cdc2e3c8c3bf404e3..5f4ba5a436781cf19b6e3dac0e01b88fe0a06c9c 100755 (executable)
@@ -39,10 +39,11 @@ for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \
                'objectclass=*' > /dev/null 2>&1
        RC=$?
-       if test $RC = 1 ; then
-               echo "Waiting 5 seconds for slapd to start..."
-               sleep 5
+       if test $RC = 0 ; then
+               break
        fi
+       echo "Waiting 5 seconds for slapd to start..."
+       sleep 5
 done
 
 echo "Using ldapadd to populate the database..."