Skip to content

Commit

Permalink
File ownership better slapd entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
skoranda committed Jan 9, 2018
1 parent 703847e commit 70beb7d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion comanage-registry-slapd/docker-slapd-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,16 @@ EOF
kill -INT `cat /var/run/slapd/slapd.pid`
sleep 1

# Fix permissions.
# Fix user and group.
chown -R openldap:openldap /var/lib/ldap
chown -R openldap:openldap /etc/ldap/slapd.d

fi

# Always set user and group in case external source of user and
# group mappings to numeric UID and GID is being used, such as
# COPY in of /etc/passwd.
chown -R openldap:openldap /var/lib/ldap
chown -R openldap:openldap /etc/ldap/slapd.d

exec "$@"

0 comments on commit 70beb7d

Please sign in to comment.