From 1ae673692e5eb6919a3be5f4ff364e2366d76764 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 3 Aug 2023 12:03:02 -0400 Subject: [PATCH] Update jellyseerr.sh add update path --- ct/jellyseerr.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ct/jellyseerr.sh b/ct/jellyseerr.sh index 9f8bdf70..721d0ae9 100644 --- a/ct/jellyseerr.sh +++ b/ct/jellyseerr.sh @@ -53,7 +53,21 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/jellyseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_error "There is currently no update path available." +msg_info "Updating $APP" +systemctl stop jellyseerr +cd /opt/jellyseerr +output=$(git pull) +git pull &>/dev/null +if echo "$output" | grep -q "Already up to date." +then + msg_info " $APP is already up to date." + systemctl start jellyseerr + exit +fi +yarn install &>/dev/null +yarn build &>/dev/null +systemctl start jellyseerr +msg_ok "Updated $APP" exit }