Update arr-update.sh

This commit is contained in:
Ryan Freeman 2024-04-12 23:52:47 +01:00 committed by GitHub
parent 7c603249e5
commit 1b3eb9b365
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster) # Author: tteck (tteckster)
# License: MIT # License: MIT
@ -11,8 +11,6 @@ installdir="/opt/$1"
branch="master" branch="master"
dlbase="https://$app.servarr.com/v1/update/$branch/updatefile?os=linux&runtime=netcore&arch=x64" dlbase="https://$app.servarr.com/v1/update/$branch/updatefile?os=linux&runtime=netcore&arch=x64"
echo "$dlbase"
msg_info "Stopping $app" msg_info "Stopping $app"
systemctl stop $app systemctl stop $app
@ -26,7 +24,7 @@ wget -q --content-disposition "$dlbase"
rm -rf "$installdir" rm -rf "$installdir"
tar -xzf ${app^}.*.tar.gz -C "/opt" tar -xzf ${app^}.*.tar.gz -C "/opt"
msg_ok "Updated $app" msg_ok "Updated $app"
rm -rf "${app^}.master.*.tar.gz" rm -rf "${app^}.*.tar.gz"
systemctl start $app systemctl start $app
msg_ok "Started $app" msg_ok "Started $app"