summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/init_slapd.sh
blob: 94dca7179187840b7620652a5859543279487cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

export PATH=/home/tridge/samba/openldap/prefix/sbin:/home/tridge/samba/openldap/prefix/bin:/home/tridge/samba/openldap/prefix/libexec:$PATH

rm -rf tests/tmp/db
mkdir -p tests/tmp/db

killall slapd
sleep 2
killall -9 slapd
slapadd -f tests/slapd.conf < tests/init.ldif || exit 1