Update arr-update.sh

This commit is contained in:
Ryan Freeman 2024-04-13 00:06:56 +01:00 committed by GitHub
parent 008e3c5da5
commit 69a1e864e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 9 deletions

View File

@ -5,26 +5,27 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build
# License: MIT # License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE # https://github.com/tteck/Proxmox/raw/main/LICENSE
app=$1 APP=$1
installdir="/opt/$1" 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"
msg_info "Stopping $app" msg_info "Stopping $APP"
systemctl stop $app systemctl stop $APP
msg_ok "Stopped $APP"
msg_info "Updating Dependencies" msg_info "Updating Dependencies"
apt-get update &>/dev/null apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null apt-get -y upgrade &>/dev/null
msg_ok "Updated Dependencies" msg_ok "Updated Dependencies"
msg_info "Updating $app" msg_info "Updating $APP"
wget -q --content-disposition "$dlbase" 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^}.*.tar.gz" rm -rf "${APP^}.*.tar.gz"
systemctl start $app systemctl start $APP
msg_ok "Started $app" msg_ok "Started $APP"