Commit 0ec559f 1 parent cceef94 commit 0ec559f Copy full SHA for 0ec559f
File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -307,15 +307,15 @@ command:
307
307
- -c
308
308
- |
309
309
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
+
319
319
exec /opt/bitnami/scripts/openldap/entrypoint.sh
320
320
# # @param args Override default container args (useful when using custom images)
321
321
# #
You can’t perform that action at this time.
0 commit comments