openldap/tests/scripts/conf.sh
Jong Hyuk Choi 001cc11ef2 Proxy cache updates (with a test suite)
- IBM India Research (Apurva)
2003-06-21 00:21:57 +00:00

19 lines
469 B
Bash
Executable File

#! /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
sed -e "s/@BACKEND@/${BACKEND}/" \
-e "s/@MODULELOAD@/${MODULELOAD}/" \
-e "s/^#${BACKEND}#//" \
-e "s/^#${MON}#//" \
-e "s/@PORT@/${PORT}/" \
-e "s/@SLAVEPORT@/${SLAVEPORT}/" \
-e "s/@CACHETTL@/${CACHETTL}/" \
-e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/"