Compare commits

..

9 Commits

Author SHA1 Message Date
Ryan Freeman d67f3561de
Update iventoy.sh 2024-04-13 01:54:38 +01:00
Ryan Freeman 628e979534
Update arr-update.sh 2024-04-13 01:20:28 +01:00
Ryan Freeman d50b02b9ee
Update arr-update.sh 2024-04-13 01:05:28 +01:00
Ryan Freeman 69a1e864e0
Update arr-update.sh 2024-04-13 00:06:56 +01:00
Ryan Freeman 008e3c5da5
Update arr-update.sh 2024-04-12 23:53:02 +01:00
Ryan Freeman 1b3eb9b365
Update arr-update.sh 2024-04-12 23:52:47 +01:00
Ryan Freeman 7c603249e5
Update arr-update.sh 2024-04-12 23:46:55 +01:00
Ryan Freeman d5f93f927d
Update arr-update.sh 2024-04-12 23:44:27 +01:00
Ryan Freeman 278b659671
Create arr-update.sh 2024-04-12 23:33:45 +01:00
2 changed files with 61 additions and 1 deletions

View File

@ -70,7 +70,7 @@ rm -rf iventoy*.tar.gz
msg_ok "Updated ${APP} LXC"
msg_info "Starting ${APP} LXC"
systemctl start autobrr.service
systemctl start iventoy.service
msg_ok "Started ${APP} LXC"
msg_ok "Updated Successfully"
exit

60
misc/arr-update.sh Normal file
View File

@ -0,0 +1,60 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
if [[ "$1" == "" ]]; then
msg_error "App name missing"
exit 1
fi
color
catch_errors
APP=$1
installdir="/opt/$1"
#Radarr
#Lidarr
#Readarr
branch="master"
#Whisparr
if [[ "$APP" == "Whisparr" ]]; then
branch="nightly"
fi
#Prowlarr
if [[ "$APP" == "Prowlarr" ]]; then
branch="develop"
fi
dlbase="https://${APP,,}.servarr.com/v1/update/$branch/updatefile?os=linux&runtime=netcore&arch=x64"
#Sonarr
if [[ "$APP" == "Sonarr" ]]; then
dlbase="https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64"
fi
msg_info "Stopping $APP"
systemctl stop ${APP,,}
msg_ok "Stopped $APP"
msg_info "Updating Dependencies"
apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null
msg_ok "Updated Dependencies"
msg_info "Updating $APP"
wget -q --content-disposition "$dlbase"
rm -rf "$installdir"
tar -xzf ${APP^}.*.tar.gz -C /opt
chmod 775 "/opt/$APP"
rm -rf ${APP^}.*.tar.gz
msg_ok "Updated $APP"
systemctl start ${APP,,}
msg_ok "Started $APP"