Update scarrs/Upgrade-Sonarr.sh

This commit is contained in:
Techognito 2025-07-24 17:55:34 +02:00
parent 2d9897862a
commit a0541601d9

View file

@ -45,18 +45,20 @@ GetOldVer () {
}
RemoveOldContainer () {
container=$1
local container=$1
podman stop $container
podman rm $container
}
StartNewcontainer () {
container=$1
local container=$1
podman start $container
}
main () {
newver=$(GetNewVer)
OldContainer=$(GetOldVer $system)
newcontainer=$(CreateContainer $(GetNewVer) $system)
newcontainer=$(CreateContainer $newver $system)
RemoveOldContainer $OldContainer
StartNewcontainer $newcontainer
}