feat(shangwutong): sync classifications and update conversations

This commit is contained in:
2026-09-11 17:08:18 +08:00
parent a06d4f4199
commit 31f157a4f5
28 changed files with 2541 additions and 232 deletions
+6 -6
View File
@@ -65,16 +65,16 @@ if ! offsite_info=$(findmnt -M "$offsite_dir" -n -o SOURCE,FSTYPE,MAJ:MIN); then
echo "GOCHAT_BACKUP_OFFSITE_DIR must be an existing external mount point" >&2
exit 1
fi
read -r offsite_source offsite_type offsite_device <<< "$offsite_info"
read -r offsite_source offsite_type offsite_device <<<"$offsite_info"
if [[ $offsite_source != "$GOCHAT_BACKUP_OFFSITE_SOURCE" || $offsite_type != "$GOCHAT_BACKUP_OFFSITE_FSTYPE" ]]; then
echo "GOCHAT_BACKUP_OFFSITE_DIR mount source/type does not match the approved values" >&2
exit 1
fi
case $offsite_type in
tmpfs | devtmpfs | ramfs)
echo "GOCHAT_BACKUP_OFFSITE_DIR must not use an in-memory filesystem" >&2
exit 1
;;
tmpfs | devtmpfs | ramfs)
echo "GOCHAT_BACKUP_OFFSITE_DIR must not use an in-memory filesystem" >&2
exit 1
;;
esac
local_probe=${GOCHAT_BACKUP_DIR:-./backups/local}
@@ -152,5 +152,5 @@ while IFS= read -r image; do
fi
echo "production image must be pinned to a sha256 digest: $image" >&2
exit 1
done <<< "$images"
done <<<"$images"
echo "production preflight passed"