row329: finish pinned model proxy P1 and record final gate (#1827)

This commit is contained in:
jason.woltje committed 2026-10-24 18:30:11 -05:00
1 parent 94cde633e2
commit c65fb34ee6
314 files changed
+11847 -4

No files matched your search

+8
View File
@@ -91,6 +91,14 @@ render() {
local -a proxy_sed=()
if [ "$MOSAIC_INSTANCE_PROXY_CONFIGURED" = 1 ]; then
proxy_sed=(-e "/^Description=/a Wants=$PROXY_UNIT\\nAfter=$PROXY_UNIT")
# A configured default instance may have selected an explicit config.
# Bind both units to it; no-proxy renders retain their historical bytes.
if [ -z "$MOSAIC_UNIT_SUFFIX" ]; then
case "$MOSAIC_INSTANCE_CONFIG" in
*[!A-Za-z0-9/._+-]*) die "proxy-config-invalid" ;;
esac
proxy_sed+=(-e "/^Environment=PATH=/a Environment=MOSAIC_CONFIG=$MOSAIC_INSTANCE_CONFIG")
fi
fi
sed "${proxy_sed[@]}" -e "s|@REPO@|$root|g" -e "s|@PATH@|$path|g" -e "s|@PM_FLAGS@|$pm_flags|g" -e "s|^@CLAUDE_ENV@$|$claude|" "${INSTANCE_SED[@]}" "$TEMPLATE"
}