|
|
@ -8,12 +8,12 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build
|
|
|
|
function header_info {
|
|
|
|
function header_info {
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
cat <<"EOF"
|
|
|
|
cat <<"EOF"
|
|
|
|
_____
|
|
|
|
_____
|
|
|
|
/ ___/____ ____ ____ __________
|
|
|
|
/ ___/____ ____ ____ __________
|
|
|
|
\__ \/ __ \/ __ \/ __ `/ ___/ ___/
|
|
|
|
\__ \/ __ \/ __ \/ __ `/ ___/ ___/
|
|
|
|
___/ / /_/ / / / / /_/ / / / /
|
|
|
|
___/ / /_/ / / / / /_/ / / / /
|
|
|
|
/____/\____/_/ /_/\__,_/_/ /_/
|
|
|
|
/____/\____/_/ /_/\__,_/_/ /_/
|
|
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
}
|
|
|
|
header_info
|
|
|
|
header_info
|
|
|
@ -52,23 +52,16 @@ function default_settings() {
|
|
|
|
|
|
|
|
|
|
|
|
function update_script() {
|
|
|
|
function update_script() {
|
|
|
|
header_info
|
|
|
|
header_info
|
|
|
|
if [[ ! -f /etc/apt/sources.list.d/sonarr.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
|
|
|
if [[ ! -d /opt/Sonarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
|
|
|
read -r -p "Are you updating Sonarr v4? <y/N> " prompt
|
|
|
|
msg_info "Updating $APP v4"
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
systemctl stop sonarr.service
|
|
|
|
msg_info "Updating $APP v4"
|
|
|
|
wget -q -O SonarrV4.tar.gz 'https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64'
|
|
|
|
systemctl stop sonarr.service
|
|
|
|
tar -xzf SonarrV4.tar.gz
|
|
|
|
wget -q -O SonarrV4.tar.gz 'https://services.sonarr.tv/v1/download/develop/latest?version=4&os=linux'
|
|
|
|
rm -rf /opt/Sonarr
|
|
|
|
tar -xzf SonarrV4.tar.gz
|
|
|
|
mv Sonarr /opt
|
|
|
|
cp -r Sonarr/* /usr/lib/sonarr/bin
|
|
|
|
rm -rf SonarrV4.tar.gz
|
|
|
|
rm -rf Sonarr SonarrV4.tar.gz
|
|
|
|
systemctl start sonarr.service
|
|
|
|
systemctl start sonarr.service
|
|
|
|
msg_ok "Updated $APP v4"
|
|
|
|
msg_ok "Updated $APP v4"
|
|
|
|
|
|
|
|
exit
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg_info "Updating $APP LXC"
|
|
|
|
|
|
|
|
apt-get update &>/dev/null
|
|
|
|
|
|
|
|
apt-get -y upgrade &>/dev/null
|
|
|
|
|
|
|
|
msg_ok "Updated $APP LXC"
|
|
|
|
|
|
|
|
exit
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|