entrypoint: set permissions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mauro Torrez 2019-09-29 02:39:25 -03:00
parent d0d022ef0f
commit 471fcb3d9d

View File

@ -6,6 +6,9 @@ assert(){ [[ $? -eq 0 ]] || { [[ -n ${1} ]] && echo ${@} ; exit 1 ; } }
# slapd is absurdly high. See https://github.com/docker/docker/issues/8231 # slapd is absurdly high. See https://github.com/docker/docker/issues/8231
ulimit -n 8192 ulimit -n 8192
chown -R openldap:openldap /var/lib/ldap
assert "FATAL: could not set required directory permissions"
slapd -u openldap -g openldap -h ldapi:/// slapd -u openldap -g openldap -h ldapi:///
assert "FATAL: sldapd died unexpectedly!" assert "FATAL: sldapd died unexpectedly!"