Update scarrs/Upgrade-Sonarr.sh

This commit is contained in:
Techognito 2025-07-24 17:38:19 +02:00
parent 4751d34c0c
commit 670a7dd2a5

View file

@ -1,5 +1,5 @@
#!/bin/bash
system=sonarr
system="sonarr"
@ -33,7 +33,7 @@ CreateContainer () {
GetNewVer () {
serv="$1"
json="$(curl https://api.linuxserver.io/api/v1/images | jq .data.repositories.linuxserver[] | select(.name==$serv))"
json="$(curl https://api.linuxserver.io/api/v1/images | jq ".data.repositories.linuxserver[] | select(.name==$serv)")"
ver="$(echo $json | jq .version | awk -F'"' '{print $2}' | awk -F'.' '{print $1 "." $2 "." $3}')"
echo $ver
}
@ -41,7 +41,7 @@ echo $ver
GetOldVer () {
serv=$1
currentPod=$(podman ps | grep $serv | awk '{print $NF}')
echo currentPod
echo $currentPod
}
RemoveOldContainer () {