1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

ctdb.init: print a warning when tdbdump is found but tdbtoo or "tdbtool check" is not available

(This used to be ctdb commit afb26e38b617b85cdac14a7cd6dd3c85b8fddbc4)
This commit is contained in:
Michael Adam 2011-04-05 13:50:00 +02:00
parent faa6d8d7e2
commit c9dc10292e

View File

@ -170,6 +170,18 @@ check_persistent_databases () {
return 0
fi
if test x"$HAVE_TDBDUMP" = x"1" -a x"$TDBTOOL_HAS_CHECK" = x"0" ; then
if test x"$HAVE_TDBTOOL" = x"0"; then
echo "WARNING: 'tdbtool' is not available. Using 'tdbdump' to"
echo "check the persistent databases."
echo "Consider installing a recent 'tdbtool' for better checks!"
else
echo "WARNING: The installed 'tdbtool' does not offer the 'check'"
echo "subcommand. Using 'tdbdump' for persistent database checks."
echo "Consider updating 'tdbtool' for better checks!"
fi
fi
for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9] 2>/dev/null`; do
check_tdb $PDBASE || {
echo "Persistent database $PDBASE is corrupted! CTDB will not start."