From 2b5788f067859dffab50cdd6ae90cb214bb44f1a Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sun, 18 Feb 2024 03:03:42 +0100
Subject: [PATCH] fix(jellyfin): Image doesn't have curl 8.3.0

---
 apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml b/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml
index 42001b834..f45332dd6 100644
--- a/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml
+++ b/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml
@@ -9,7 +9,7 @@
         #!/bin/sh
 
         while true; do
-            if curl --variable %JELLYFIN_KEY 'http://localhost:8096/Sessions\?ApiKey\={{JELLYFIN_KEY:url}}' | jq '.[].NowPlayingItem != null' | grep 'true'; then
+            if curl "http://localhost:8096/Sessions\?ApiKey\=$JELLYFIN_KEY" | jq '.[].NowPlayingItem != null' | grep 'true'; then
                 kubectl patch --patch '{"spec": {"maxUnavailable:": 0}}' jellyfin
             else
                 kubectl patch --patch '{"spec": {"maxUnavailable:": 1}}' jellyfin
-- 
GitLab