From 92b50cf36f23e6bfe205e11d634fb78ce51238a3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 9 Nov 2023 17:52:48 -0500 Subject: [PATCH] Update sonarr.sh add update for v4 --- ct/sonarr.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ct/sonarr.sh b/ct/sonarr.sh index cbcf3e34..bd0f7342 100644 --- a/ct/sonarr.sh +++ b/ct/sonarr.sh @@ -53,6 +53,16 @@ function default_settings() { function update_script() { header_info if [[ ! -f /etc/apt/sources.list.d/sonarr.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi +read -r -p "Are you updating Sonarr v4? " prompt +if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then + systemctl stop sonarr.service + wget -q -O SonarrV4.tar.gz 'https://services.sonarr.tv/v1/download/develop/latest?version=4&os=linux' + tar -xzf SonarrV4.tar.gz + cp -r Sonarr/* /usr/lib/sonarr/bin + rm -rf Sonarr SonarrV4.tar.gz + systemctl start sonarr.service + exit +fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null