mirror of
https://github.com/luzifer-docker/openldap.git
synced 2024-12-20 20:51:17 +00:00
2e4b41c48e
adapded clone from Christian Luginbühl <dinkel@pimprecords.com> docker-openldap
18 lines
408 B
Bash
Executable file
18 lines
408 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# When not limiting the open file descritors limit, the memory consumption of
|
|
# slapd is absurdly high. See https://github.com/docker/docker/issues/8231
|
|
ulimit -n 8192
|
|
|
|
|
|
set -e
|
|
|
|
|
|
slapd_configs_in_env=`env | grep 'SLAPD_'`
|
|
|
|
if [ -n "${slapd_configs_in_env:+x}" ]; then
|
|
echo "Info: Container already configured, therefore ignoring SLAPD_xxx environment variables"
|
|
fi
|
|
|
|
|
|
exec "$@"
|