From 4cd53a91056b05f9f84bfbfeee931ec53db4706e Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Fri, 1 Nov 2024 10:32:55 -0400 Subject: [PATCH] Modify the ldap healthcheck to ignore suffix creation because suffix creation fails if it already exists --- eclipse-pass.local.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclipse-pass.local.yml b/eclipse-pass.local.yml index e0f9ec6..aba6c14 100644 --- a/eclipse-pass.local.yml +++ b/eclipse-pass.local.yml @@ -84,7 +84,7 @@ services: - .eclipse-pass.local_env # Healthy when manage to create the suffix and load users healthcheck: - test: '(dsconf -D "cn=Directory Manager" localhost backend create --suffix="$$DS_SUFFIX_NAME" --be-name="pass" && ldapadd -f /pass.ldif -H ldap://localhost:3389 -w "$$DS_DM_PASSWORD" -D "cn=Directory Manager") || exit 1' + test: '(dsconf -D "cn=Directory Manager" localhost backend create --suffix="$$DS_SUFFIX_NAME" --be-name="pass"; ldapadd -f /pass.ldif -H ldap://localhost:3389 -w "$$DS_DM_PASSWORD" -D "cn=Directory Manager") || exit 1' start_period: 60s interval: 5s volumes: