diff --git a/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml b/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml index 42001b8343c6694e65f3ec65a91f65da26a62d6a..f45332dd68729e05fb056cf5fce139baf50624a4 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