Moved 'ulimit' command before 'set -e' to avoid permaent errors with low global ulimits as requested by Hong Xu (xuhdev)

This commit is contained in:
Christian Luginbühl 2015-03-25 23:02:50 +01:00
parent b165002180
commit bd213c1c78

View file

@ -1,10 +1,12 @@
#!/bin/bash
set -e
# 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
chown -R openldap:openldap /var/lib/ldap/
if [[ ! -d /etc/ldap/slapd.d ]]; then