mirror of
https://github.com/rroemhild/docker-test-openldap.git
synced 2026-04-25 07:05:50 +03:00
[GH-ISSUE #49] Bootstrap script breaks due to non-set environment variables #28
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-test-openldap#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IngmarPaetzold on GitHub (Sep 12, 2023).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/49
After building the container locally, I had the same issue as #42 and could solve that with https://github.com/jskacel 's proposal:
https://github.com/rroemhild/docker-test-openldap/blob/master/rootfs/opt/openldap/bootstrap/config/tls.ldif#L3-L5
However, the script broke again:
It fails because variables
LDAP_BASEDNandLDAP_DOMAINare not set, but script/rootfs/etc/cont-init.d/050-openldap-populatereferences them.Reason is the
set -euxon top which makes every non-set variable an error.Therefore the script breaks and does not stop the database, which, as consequence, raises the
database already in useerror.I will file a pull request for that.