Skip to content

Commit b2f68b2

Browse files
committed
Merge branch 'zsoerenm-remove-schema-ambiguity' into hotfix-1.2.2
2 parents bf9b7cc + 3b0ac7b commit b2f68b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/service/slapd/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
5454
}
5555

5656
function is_new_schema() {
57-
local COUNT=$(ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config cn | grep -c $1)
57+
local COUNT=$(ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config cn | grep -c "}$1,")
5858
if [ "$COUNT" -eq 0 ]; then
5959
echo 1
6060
else

0 commit comments

Comments
 (0)