]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Nope... that won't work
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 20 May 2023 06:22:17 +0000 (02:22 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 20 May 2023 06:22:17 +0000 (02:22 -0400)
scripts/ci/ldap-setup.sh

index 7862cce8a522434ececd6a6aab57301d33ef9edb..d49e80d24136cd937b897eadb8361dea9602c854 100755 (executable)
@@ -29,13 +29,7 @@ else
 fi
 
 # Start slapd
-if ! slapd -d any -h "ldap://127.0.0.1:3890/" -f scripts/ci/ldap/slapd.conf 2>&1 > /tmp/slapd.log &; then
-    cat /tmp/slapd.log
-    exit 1
-fi
-
-# Wait for LDAP to start
-sleep 1
+slapd -d any -h "ldap://127.0.0.1:3890/" -f scripts/ci/ldap/slapd.conf 2>&1 > /tmp/slapd.log &
 
 # Add test data
 count=0
@@ -50,5 +44,6 @@ done
 
 if [ $? -ne 0 ]; then
        echo "Error configuring server"
+    cat /tmp/slapd.log
        exit 1
 fi