fix(qbittorrent): specify container in updateip script

This commit is contained in:
SeanOMik 2024-04-20 17:30:05 -04:00
parent 52e9a314af
commit 320a4ed1dc
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ data:
echo 'getting pod name' echo 'getting pod name'
POD_NAME=$(kubectl get pods -n download --selector "app.kubernetes.io/name=qbittorrent" --output=jsonpath={.items..metadata.name}) POD_NAME=$(kubectl get pods -n download --selector "app.kubernetes.io/name=qbittorrent" --output=jsonpath={.items..metadata.name})
echo $POD_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 echo $OUTPUT
if [[ $OUTPUT == *"Success\":true"* ]]; then if [[ $OUTPUT == *"Success\":true"* ]]; then
echo "Success" echo "Success"