Merge pull request #96 from BlackRose01/patch-1

Replace is_boolean_no to is_boolean_yes
This commit is contained in:
Fran Mulero
2022-04-06 14:42:00 +02:00
committed by GitHub

View File

@@ -474,7 +474,7 @@ ldap_initialize() {
fi
if ! is_dir_empty "$LDAP_CUSTOM_LDIF_DIR"; then
ldap_add_custom_ldifs
elif is_boolean_no "$LDAP_SKIP_DEFAULT_TREE"; then
elif ! is_boolean_yes "$LDAP_SKIP_DEFAULT_TREE"; then
ldap_create_tree
else
info "Skipping default schemas/tree structure"
@@ -549,4 +549,4 @@ olcTLSDHParamFile: $LDAP_TLS_DH_PARAMS_FILE
EOF
fi
debug_execute ldapmodify -Y EXTERNAL -H "ldapi:///" -f "${LDAP_SHARE_DIR}/certs.ldif"
}
}