Skip to content

Commit 0ec559f

Browse files
committed
need to use case instead of [[ ]] due to not having bash
1 parent cceef94 commit 0ec559f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

values.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,15 @@ command:
307307
- -c
308308
- |
309309
host=$(hostname)
310-
if [[ "$host" = *-0 ]]
311-
then
312-
echo "This is the first openldap pod so let's init all additional schemas and ldifs here"
313-
else
314-
echo "This is not the first openldap pod so let's not init anything"
315-
unset LDAP_CONFIGURE_PPOLICY LDAP_PPOLICY_HASH_CLEARTEXT
316-
export LDAP_SKIP_DEFAULT_TREE=yes
317-
fi
318-
310+
case "$host" in
311+
*"-0")
312+
echo "This is the first openldap pod so let's init all additional schemas and ldifs here" ;;
313+
*)
314+
echo "This is not the first openldap pod so let's not init anything"
315+
unset LDAP_CONFIGURE_PPOLICY LDAP_PPOLICY_HASH_CLEARTEXT
316+
export LDAP_SKIP_DEFAULT_TREE=yes ;;
317+
esac
318+
319319
exec /opt/bitnami/scripts/openldap/entrypoint.sh
320320
## @param args Override default container args (useful when using custom images)
321321
##

0 commit comments

Comments
 (0)