Update scarrs/Upgrade-Sonarr.sh
This commit is contained in:
parent
2d9897862a
commit
a0541601d9
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue