|
|
@ -5,14 +5,41 @@ 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$1" == "" ]]; then |
|
|
|
|
|
|
|
msg_error "App name missing" |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
color |
|
|
|
|
|
|
|
catch_errors |
|
|
|
|
|
|
|
|
|
|
|
APP=$1 |
|
|
|
APP=$1 |
|
|
|
installdir="/opt/$1" |
|
|
|
installdir="/opt/$1" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Radarr |
|
|
|
|
|
|
|
#Lidarr |
|
|
|
|
|
|
|
#Readarr |
|
|
|
branch="master" |
|
|
|
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" |
|
|
|
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" |
|
|
|
msg_info "Stopping $APP" |
|
|
|
systemctl stop $APP |
|
|
|
#systemctl stop $APP |
|
|
|
msg_ok "Stopped $APP" |
|
|
|
msg_ok "Stopped $APP" |
|
|
|
|
|
|
|
|
|
|
|
msg_info "Updating Dependencies" |
|
|
|
msg_info "Updating Dependencies" |
|
|
@ -23,9 +50,11 @@ 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" |
|
|
|
chmod 775 "/opt/$APP" |
|
|
|
rm -rf "${APP^}.*.tar.gz" |
|
|
|
rm -rf ${APP^}.*.tar.gz |
|
|
|
|
|
|
|
msg_ok "Updated $APP" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
systemctl start $APP |
|
|
|
#systemctl start $APP |
|
|
|
msg_ok "Started $APP" |
|
|
|
msg_ok "Started $APP" |
|
|
|