mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
testprogs: Use system binary if we did not build ldbdel.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Feb 18 12:45:41 CET 2014 on sn-devel-104
This commit is contained in:
parent
97a62e2279
commit
e2b0d25b70
@ -15,6 +15,11 @@ shift 2
|
||||
|
||||
release_dir=`dirname $0`/../../source4/selftest/provisions/${RELEASE}
|
||||
|
||||
LDBDEL_BIN=ldbdel
|
||||
if [ -x "$BINDIR/ldbdel" ]; then
|
||||
LDBDEL_BIN=$BINDIR/ldbdel
|
||||
fi
|
||||
|
||||
undump() {
|
||||
if test -x $BINDIR/tdbrestore;
|
||||
then
|
||||
@ -42,7 +47,7 @@ undump() {
|
||||
remove_dns_user() {
|
||||
if [ x$RELEASE != x"release-4-0-0" ]; then
|
||||
# This is done, because otherwise the upgrdeprovision will not run without --full
|
||||
$BINDIR/ldbdel -H tdb://$PREFIX_ABS/${RELEASE}_upgrade/private/sam.ldb cn=dns,cn=users,dc=${RELEASE},dc=samba,dc=corp
|
||||
${LDBDEL_BIN} -H tdb://$PREFIX_ABS/${RELEASE}_upgrade/private/sam.ldb cn=dns,cn=users,dc=${RELEASE},dc=samba,dc=corp
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user