aboutsummaryrefslogtreecommitdiffstats
path: root/net/openldap24-server/files/slapd.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/openldap24-server/files/slapd.sh.in')
-rw-r--r--net/openldap24-server/files/slapd.sh.in4
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}"
e='2017-04-01 23:23:30 +0800'>2017-04-011-1/+1 * Bump PORTREVISIONS for ports depending on the canonical version of GCC andgerald2016-12-07