From 79fb2c309811e3d4fdb25d0f9194e7d9176e4c55 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 3 Aug 2023 11:59:39 -0400 Subject: [PATCH] Update overseerr.sh add update path --- ct/overseerr.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ct/overseerr.sh b/ct/overseerr.sh index bec9f790..7efeab1b 100644 --- a/ct/overseerr.sh +++ b/ct/overseerr.sh @@ -53,7 +53,21 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/overseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_error "There is currently no update path available." +msg_info "Updating $APP" +systemctl stop overseerr +cd /opt/overseerr +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 overseerr + exit +fi +yarn install &>/dev/null +yarn build &>/dev/null +systemctl start overseerr +msg_ok "Updated $APP" exit }