openldap/tests/scripts/makeldbm.sh

17 lines
244 B
Bash
Raw Normal View History

1999-04-21 13:59:01 +08:00
#! /bin/sh
1999-09-02 08:52:43 +08:00
# $OpenLDAP$
1998-08-09 08:43:13 +08:00
. scripts/defines.sh
echo "Cleaning up in $DBDIR..."
rm -f $DBDIR/[!C]*
1998-08-09 08:43:13 +08:00
1999-08-23 01:10:23 +08:00
echo "Running slapadd to build slapd database..."
$slapadd -f $CONF -l $LDIF
1998-08-09 08:43:13 +08:00
RC=$?
1999-04-21 13:59:01 +08:00
if test $RC != 0 ; then
1999-08-23 01:10:23 +08:00
echo "slapadd failed!"
1998-08-09 08:43:13 +08:00
exit $RC
fi