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

container should use /var/log/message file if local log is used.

parent c1be03af
No related branches found
No related tags found
No related merge requests found
...@@ -324,8 +324,6 @@ case "${ACTION}" in ...@@ -324,8 +324,6 @@ case "${ACTION}" in
fi fi
if [[ "X${LDAP_LOG_FILE}" != "X/dev/null" ]] if [[ "X${LDAP_LOG_FILE}" != "X/dev/null" ]]
then then
logdir=dirname ${LDAP_LOG_FILE}
mkdir -p $logdir
touch ${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
......
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