diff options
Diffstat (limited to 'net/openldap24-server/files/slapd.sh.in')
-rw-r--r-- | net/openldap24-server/files/slapd.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/openldap24-server/files/slapd.sh.in b/net/openldap24-server/files/slapd.sh.in index 9c94268474b..70b5106de23 100644 --- a/net/openldap24-server/files/slapd.sh.in +++ b/net/openldap24-server/files/slapd.sh.in @@ -49,6 +49,10 @@ start_precmd() ""|[Nn][Oo][Nn][Ee]|[Dd][Ee][Ff][Aa][Uu][Ll][Tt]) ;; *) + if [ ! -d "${DBDIR}" ]; then + mkdir -p "${DBDIR}" + cp "%%PREFIX%%/etc/openldap/DB_CONFIG.example" "${DBDIR}/DB_CONFIG" + fi chown "$slapd_owner" "%%LDAP_RUN_DIR%%" chown -RL "$slapd_owner" "${DBDIR}" chmod 700 "${DBDIR}" |