/var/run/slapd also has to be accessible to slapd

Sharing unix sockets via data-only containers is a viable way of communicating between processes; to do this, however, `/var/run/slapd` has to be on a volume from an external container. There is no guarantee that it will have the correct permissions, hence the need to `chown` it in eintrypoint script.
This commit is contained in:
rysiekpl 2015-09-19 19:09:10 +02:00
parent 390f2a876c
commit ff5b30e575

View file

@ -7,7 +7,7 @@ ulimit -n 8192
set -e
chown -R openldap:openldap /var/lib/ldap/
chown -R openldap:openldap /var/lib/ldap/ /var/run/slapd/
if [[ ! -d /etc/ldap/slapd.d ]]; then