You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Space separated paths to directories or ZIP files merged with default vendor data, effective on first LDAP startup, invoke of update-data <version> or replace-vendor-data.
The text was updated successfully, but these errors were encountered:
gunterze
changed the title
LDAP docker image: Optionally merge vendor data with content of ZIP specified by ENV
LDAP docker image: Optionally merge vendor data with content of directories or ZIPs specified by ENV
Apr 8, 2020
gunterze
added a commit
to dcm4che-dockerfiles/slapd
that referenced
this issue
Apr 8, 2020
.. so this is rather effective "on first invocation of replace-vendor-data after re-creation of the container" i.e. as per
#!/bin/sh
if [ ! -f /etc/openldap/data/vendor-data.zip ]; then
cp /etc/openldap/data/vendor-data-orig.zip /etc/openldap/data/vendor-data.zip
if [ -n "$EXT_VENDOR_DATA_PATH" ]; then
for f in $EXT_VENDOR_DATA_PATH; do
if [ ! -d $f ]; then
mkdir /tmp/$f
unzip $f -d /tmp/$f
cd /tmp/$f
else
cd $f;
fi
zip -r /etc/openldap/data/vendor-data.zip .
done
fi
fi
which is only effective if no previous replace-vendor-data took place..
This behavior is indented to avoid re-generation of /etc/openldap/data/vendor-data.zip on each invocation of merge-vendor-data.sh, which is not only invoked by replace-vendor-data.
You have to recreate the container for re-generation of /etc/openldap/data/vendor-data.zip.
Environment Variables
EXT_VENDOR_DATA_PATH
Space separated paths to directories or ZIP files merged with default vendor data, effective on first LDAP startup, invoke of
update-data <version>
orreplace-vendor-data
.The text was updated successfully, but these errors were encountered: