From 8c0efb2d3f3781322070c3a2af7e4ea4045f4b0b Mon Sep 17 00:00:00 2001 From: hong Xu Date: Fri, 20 Mar 2015 19:59:45 -0400 Subject: [PATCH] Change the owner of the files in /var/lib/ldap to openldap and run as openldap --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fc4586..5780b35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] -CMD ["slapd", "-d", "32768"] +CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"] diff --git a/entrypoint.sh b/entrypoint.sh index b5e44c6..49eb73a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -chown openldap:openldap /var/lib/ldap/ +chown -R openldap:openldap /var/lib/ldap/ if [[ ! -d /etc/ldap/slapd.d ]]; then