Update arr-update.sh

This commit is contained in:
Ryan Freeman
2024-04-13 01:20:28 +01:00
committed by GitHub
parent d50b02b9ee
commit 628e979534

View File

@@ -31,7 +31,7 @@ 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
@@ -39,7 +39,7 @@ dlbase="https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&ar
fi
msg_info "Stopping $APP"
#systemctl stop $APP
systemctl stop ${APP,,}
msg_ok "Stopped $APP"
msg_info "Updating Dependencies"
@@ -56,5 +56,5 @@ rm -rf ${APP^}.*.tar.gz
msg_ok "Updated $APP"
#systemctl start $APP
systemctl start ${APP,,}
msg_ok "Started $APP"