openldap/tests/scripts/makeldbm.sh
1999-09-02 00:52:43 +00:00

17 lines
244 B
Bash
Executable File

#! /bin/sh
# $OpenLDAP$
. scripts/defines.sh
echo "Cleaning up in $DBDIR..."
rm -f $DBDIR/[!C]*
echo "Running slapadd to build slapd database..."
$slapadd -f $CONF -l $LDIF
RC=$?
if test $RC != 0 ; then
echo "slapadd failed!"
exit $RC
fi