Skip to content

Commit 23da307

Browse files
committed
fix missing dir after they have been removed from image volumes
1 parent 662d683 commit 23da307

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

image/service/slapd/startup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ log-helper level eq trace && set -x
1010
# see https://github.com/docker/docker/issues/8231
1111
ulimit -n 1024
1212

13+
# create dir if they not already exists
14+
[ -d /var/lib/ldap ] || mkdir -p /var/lib/ldap
15+
[ -d /etc/ldap/slapd.d ] || mkdir -p /etc/ldap/slapd.d
16+
1317
# fix file permissions
1418
chown -R openldap:openldap /var/lib/ldap
1519
chown -R openldap:openldap /etc/ldap

0 commit comments

Comments
 (0)