Make sure time hashes are verified during sync.
This commit is contained in:
parent
50a78cb72e
commit
76b185e509
@ -120,6 +120,12 @@ if [ $hT -eq 1 ]; then
|
||||
echo "Byte mismatch with $2.time !";
|
||||
exit 1;
|
||||
fi
|
||||
(sha512sum "$3/times/$2.time" > "$uuidTmp/$2.time.sum") && dd "if=$uuidTmp/$2.time.sum" bs=128 count=1 "of=$uuidTmp/$2-time.hash";
|
||||
cmp -s "$uuidTmp/$2-time.hash" "$3/hsums/$2-time.hash";
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Hash mismatch with $2.time !";
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
rm -rf $uuidTmp;
|
||||
echo "Finished!";
|
||||
|
Loading…
x
Reference in New Issue
Block a user