Update checkFilestore

This commit is contained in:
oliver
2026-08-14 11:09:30 -03:00
parent 82f1ddeec3
commit 48601ee943
+2 -2
View File
@@ -26,10 +26,10 @@ echo "Docker mapped to : ${MOUNT_HOST:-<no matching mount found>}"
echo "Hashing container filestore..." echo "Hashing container filestore..."
MD5_CONTAINER=$(doas docker exec "$UUID" sh -c \ MD5_CONTAINER=$(doas docker exec "$UUID" sh -c \
"find $FILESTORE_CONTAINER -type f | sort | xargs md5sum 2>/dev/null" | md5sum | cut -d' ' -f1) "find $FILESTORE_CONTAINER -type f | sort | xargs md5sum 2>/dev/null | awk '{print \$1}'" | md5sum | cut -d' ' -f1)
echo "Hashing host filestore..." echo "Hashing host filestore..."
MD5_HOST=$(find "$FILESTORE_HOST" -type f | sort | xargs md5sum 2>/dev/null | md5sum | cut -d' ' -f1) MD5_HOST=$(find "$FILESTORE_HOST" -type f | sort | xargs md5sum 2>/dev/null | awk '{print $1}' | md5sum | cut -d' ' -f1)
echo "Container : $MD5_CONTAINER" echo "Container : $MD5_CONTAINER"
echo "Host : $MD5_HOST" echo "Host : $MD5_HOST"