From 3c79305bca9a55d68b8263c72f12c042283234d7 Mon Sep 17 00:00:00 2001 From: navels Date: Wed, 5 Jun 2024 02:44:50 -0700 Subject: [PATCH] Update Jackett app when updating Jackett LXC. (#3137) --- ct/jackett.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ct/jackett.sh b/ct/jackett.sh index 096eef89..2ef1598c 100644 --- a/ct/jackett.sh +++ b/ct/jackett.sh @@ -59,6 +59,15 @@ msg_info "Updating ${APP} LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" +msg_info "Updating ${APP}" +RELEASE=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) +wget -q https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz +systemctl stop jackett +rm -rf /opt/Jackett +tar -xzf Jackett.Binaries.LinuxAMDx64.tar.gz -C /opt +rm -rf Jackett.Binaries.LinuxAMDx64.tar.gz +systemctl start jackett +msg_ok "Updated ${APP} to ${RELEASE}" exit }