From 320a4ed1dc4f36e093381c20b9a398fa3134993c Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 20 Apr 2024 17:30:05 -0400 Subject: [PATCH] fix(qbittorrent): specify container in updateip script --- cluster/apps/download/qbittorrent/updateip-script.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/apps/download/qbittorrent/updateip-script.yaml b/cluster/apps/download/qbittorrent/updateip-script.yaml index b29b3394..f58ba45a 100644 --- a/cluster/apps/download/qbittorrent/updateip-script.yaml +++ b/cluster/apps/download/qbittorrent/updateip-script.yaml @@ -9,7 +9,7 @@ data: echo 'getting pod name' POD_NAME=$(kubectl get pods -n download --selector "app.kubernetes.io/name=qbittorrent" --output=jsonpath={.items..metadata.name}) echo $POD_NAME - OUTPUT=$(kubectl exec -it $POD_NAME -n download -- /bin/bash -c 'MAM_ID=$(cat /etc/tokens/mam-id); curl -i -c /etc/mam.cookies -b "mam_id=$MAM_ID" https://t.myanonamouse.net/json/dynamicSeedbox.php') + OUTPUT=$(kubectl exec -it $POD_NAME -c main -n download -- /bin/bash -c 'MAM_ID=$(cat /etc/tokens/mam-id); curl -i -c /etc/mam.cookies -b "mam_id=$MAM_ID" https://t.myanonamouse.net/json/dynamicSeedbox.php') echo $OUTPUT if [[ $OUTPUT == *"Success\":true"* ]]; then echo "Success"