Make recovery archive validation pipe-safe

This commit is contained in:
Mikei386
2026-08-23 16:04:38 +02:00
parent c229ee3685
commit 404073340c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ tar -C "$stage" -xzf "$stage/bundle.tar.gz"
cd "$stage"
sha256sum -c SHA256SUMS
)
tar -tzf "$stage/openwebui-data.tar.gz" | grep -Eq '(^|/)webui\.db$' || \
tar -tzf "$stage/openwebui-data.tar.gz" ./webui.db >/dev/null 2>&1 || \
die "OpenWebUI-Archiv enthält keine Datenbank."
recorded_commit=$(sed -n 's/^source_commit=//p' "$stage/METADATA" | head -n 1)