Bump target media-node version to 1.3.5 so Upgrade shows again.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jos Vooges | STH 2026-09-08 03:41:45 +02:00
parent 9de3ee62d7
commit 20433dd747
4 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ export default function NodesPage() {
const [editRoots, setEditRoots] = useState<ScanRootRow[]>([]); const [editRoots, setEditRoots] = useState<ScanRootRow[]>([]);
const [editBusy, setEditBusy] = useState(false); const [editBusy, setEditBusy] = useState(false);
const [upgradingId, setUpgradingId] = useState<string | null>(null); const [upgradingId, setUpgradingId] = useState<string | null>(null);
const [targetNodeVersion, setTargetNodeVersion] = useState("1.3.3"); const [targetNodeVersion, setTargetNodeVersion] = useState("1.3.5");
function loadNodes() { function loadNodes() {
fetch("/api/v1/admin/nodes", { credentials: "include" }) fetch("/api/v1/admin/nodes", { credentials: "include" })

View file

@ -1,6 +1,6 @@
/** Target media-node version served from /install/media-node-linux-* */ /** Target media-node version served from /install/media-node-linux-* */
export const MEDIA_NODE_TARGET_VERSION = export const MEDIA_NODE_TARGET_VERSION =
process.env.MEDIA_NODE_VERSION?.trim() || "1.3.3"; process.env.MEDIA_NODE_VERSION?.trim() || "1.3.5";
/** Minimum node version that handles UPGRADE over WebSocket */ /** Minimum node version that handles UPGRADE over WebSocket */
const REMOTE_UPGRADE_MIN_VERSION = "1.3.3"; const REMOTE_UPGRADE_MIN_VERSION = "1.3.3";

View file

@ -4,7 +4,7 @@ WORKDIR /app
FROM golang:1.22-alpine AS node-build FROM golang:1.22-alpine AS node-build
WORKDIR /src WORKDIR /src
ARG MEDIA_NODE_VERSION=1.3.3 ARG MEDIA_NODE_VERSION=1.3.5
RUN apk add --no-cache git ca-certificates RUN apk add --no-cache git ca-certificates
COPY node/media-node/ ./ COPY node/media-node/ ./
RUN go mod tidy \ RUN go mod tidy \

View file

@ -61,7 +61,7 @@ mv "$BIN_PATH.new" "$BIN_PATH"
if docker ps -a --format '{{.Names}}' | grep -qx "$CONTAINER"; then if docker ps -a --format '{{.Names}}' | grep -qx "$CONTAINER"; then
echo "Container herstarten..." echo "Container herstarten..."
docker restart "$CONTAINER" >/dev/null docker restart "$CONTAINER" >/dev/null
echo "Klaar. Controleer versie in Admin → Nodes (verwacht ${MEDIA_NODE_VERSION:-1.3.3}+)." echo "Klaar. Controleer versie in Admin → Nodes (verwacht ${MEDIA_NODE_VERSION:-1.3.5}+)."
else else
echo "Waarschuwing: container '$CONTAINER' niet gevonden — binary is wel bijgewerkt." echo "Waarschuwing: container '$CONTAINER' niet gevonden — binary is wel bijgewerkt."
fi fi