openldap/tests/scripts/conf.sh

17 lines
391 B
Bash
Raw Normal View History

#! /bin/sh
# $OpenLDAP$
if [ x"$MONITORDB" = x"yes" ] ; then
MON=monitor
else
MON=nomonitor
fi
if [ x"$BACKENDTYPE" = x"mod" ]; then
MODULELOAD="moduleload back_${BACKEND}.la"
fi
2002-08-13 06:27:24 +08:00
sed -e "s/@BACKEND@/${BACKEND}/" \
-e "s/@MODULELOAD@/${MODULELOAD}/" \
2002-08-13 06:27:24 +08:00
-e "s/^#${BACKEND}#//" \
-e "s/^#${MON}#//" \
-e "s/@CACHETTL@/${CACHETTL}/" \
-e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/"