mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
testprogs: Use system_or_builddir_binary() for upgradeprovision-oldrelease
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
40eeec0fff
commit
eb6f74bd74
@ -18,15 +18,8 @@ failed=0
|
||||
|
||||
release_dir="$SRCDIR_ABS/source4/selftest/provisions/${RELEASE}"
|
||||
|
||||
LDBDEL_BIN=ldbdel
|
||||
if [ -x "$BINDIR/ldbdel" ]; then
|
||||
LDBDEL_BIN=$BINDIR/ldbdel
|
||||
fi
|
||||
|
||||
samba_tdbrestore="tdbrestore"
|
||||
if [ -x "$BINDIR/tdbrestore" ]; then
|
||||
samba_tdbrestore="$BINDIR/tdbrestore"
|
||||
fi
|
||||
ldbdel=$(system_or_builddir_binary ldbdel "${BINDIR}")
|
||||
samba_tdbrestore=$(system_or_builddir_binary tdbrestore "${BINDIR}")
|
||||
|
||||
samba_undump="$SRCDIR_ABS/source4/selftest/provisions/undump.sh"
|
||||
if [ ! -x $samba_undump ] || [ ! -d $release_dir ]; then
|
||||
@ -125,7 +118,7 @@ remove_dns_user()
|
||||
{
|
||||
if [ x$RELEASE != x"release-4-0-0" ]; then
|
||||
# This is done, because otherwise the upgrdeprovision will not run without --full
|
||||
${LDBDEL_BIN} -H tdb://$PREFIX_ABS/${RELEASE}_upgrade/private/sam.ldb cn=dns,cn=users,dc=${RELEASE},dc=samba,dc=corp
|
||||
${ldbdel} -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