Skip to content
Snippets Groups Projects
Commit cf40e5c7 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Create file instead of logdir.

parent 918e8ff9
No related branches found
No related tags found
No related merge requests found
...@@ -324,7 +324,7 @@ case "${ACTION}" in ...@@ -324,7 +324,7 @@ case "${ACTION}" in
fi fi
if [[ "X${LDAP_LOG_FILE}" != "X/dev/null" ]] if [[ "X${LDAP_LOG_FILE}" != "X/dev/null" ]]
then then
mkdir ${LDAP_LOG_FILE} touch ${LDAP_LOG_FILE}
fi fi
if ! /usr/sbin/slapd -h "${endpoints}" -F /etc/ldap/slapd.d -d ${LDAP_LOG_LEVEL} > ${LDAP_LOG_FILE} 2>&1; then if ! /usr/sbin/slapd -h "${endpoints}" -F /etc/ldap/slapd.d -d ${LDAP_LOG_LEVEL} > ${LDAP_LOG_FILE} 2>&1; then
echo "slapd failed to start. Wipe out local copy, forcing reload on next start." echo "slapd failed to start. Wipe out local copy, forcing reload on next start."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment