mirror of
https://github.com/luzifer-docker/openldap.git
synced 2024-12-20 20:51:17 +00:00
Change the owner of the files in /var/lib/ldap to openldap and run as openldap
This commit is contained in:
parent
8638ea5a6f
commit
8c0efb2d3f
2 changed files with 2 additions and 2 deletions
|
@ -24,4 +24,4 @@ COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["slapd", "-d", "32768"]
|
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
chown openldap:openldap /var/lib/ldap/
|
chown -R openldap:openldap /var/lib/ldap/
|
||||||
|
|
||||||
if [[ ! -d /etc/ldap/slapd.d ]]; then
|
if [[ ! -d /etc/ldap/slapd.d ]]; then
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue