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 () {
|
RemoveOldContainer () {
|
||||||
container=$1
|
local container=$1
|
||||||
|
podman stop $container
|
||||||
podman rm $container
|
podman rm $container
|
||||||
}
|
}
|
||||||
|
|
||||||
StartNewcontainer () {
|
StartNewcontainer () {
|
||||||
container=$1
|
local container=$1
|
||||||
podman start $container
|
podman start $container
|
||||||
}
|
}
|
||||||
|
|
||||||
main () {
|
main () {
|
||||||
|
newver=$(GetNewVer)
|
||||||
OldContainer=$(GetOldVer $system)
|
OldContainer=$(GetOldVer $system)
|
||||||
newcontainer=$(CreateContainer $(GetNewVer) $system)
|
newcontainer=$(CreateContainer $newver $system)
|
||||||
RemoveOldContainer $OldContainer
|
RemoveOldContainer $OldContainer
|
||||||
StartNewcontainer $newcontainer
|
StartNewcontainer $newcontainer
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue