mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
99d872ee92
Reviewed-by: Stefan Metzmacher <metze@samba.org>
32 lines
409 B
Bash
Executable File
32 lines
409 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -lt 1 ]; then
|
|
cat <<EOF
|
|
Usage: dbcheck.sh PREFIX
|
|
EOF
|
|
exit 1;
|
|
fi
|
|
|
|
PREFIX="$1"
|
|
shift 1
|
|
|
|
. `dirname $0`/subunit.sh
|
|
|
|
dbcheck() {
|
|
$BINDIR/samba-tool dbcheck --cross-ncs $@
|
|
}
|
|
|
|
reindex() {
|
|
$BINDIR/samba-tool dbcheck --reindex
|
|
}
|
|
|
|
force_modules() {
|
|
$BINDIR/samba-tool dbcheck --force-modules
|
|
}
|
|
|
|
testit "dbcheck" dbcheck
|
|
testit "reindex" reindex
|
|
testit "force_modules" force_modules
|
|
|
|
exit $failed
|