Skip mdb_stat test when the command is not available
This commit is contained in:

committed by
Viktor Dukhovni

parent
a39bd42576
commit
2baa0a00c8
@@ -446,13 +446,13 @@ ${iprop_log} last-version > slave-last.tmp
|
|||||||
${iprop_log} last-version > master-last.tmp
|
${iprop_log} last-version > master-last.tmp
|
||||||
cmp master-last.tmp slave-last.tmp || exit 1
|
cmp master-last.tmp slave-last.tmp || exit 1
|
||||||
|
|
||||||
if [ "$db_type" = lmdb ]; then
|
if [ "$db_type" = lmdb ] && type mdb_stat > /dev/null 2>&1; then
|
||||||
# Sanity check that we have the same number of principals at the HDB
|
# Sanity check that we have the same number of principals at the HDB
|
||||||
# and LMDB levels.
|
# and LMDB levels.
|
||||||
#
|
#
|
||||||
# We should also do this for the sqlite backend, but that would
|
# We should also do this for the sqlite backend, but that would
|
||||||
# require a sqlite3(1) shell that is capable of opening our HDB
|
# require a sqlite3(1) shell that is capable of opening our HDB
|
||||||
# files. W
|
# files.
|
||||||
echo "checking that principals in DB == entries in LMDB"
|
echo "checking that principals in DB == entries in LMDB"
|
||||||
princs=`${kadmin} -l list '*' | wc -l`
|
princs=`${kadmin} -l list '*' | wc -l`
|
||||||
entries=`mdb_stat -n current-db.mdb | grep 'Entries:' | awk '{print $2}'`
|
entries=`mdb_stat -n current-db.mdb | grep 'Entries:' | awk '{print $2}'`
|
||||||
|
Reference in New Issue
Block a user