Compare commits

...

4 Commits

Author SHA1 Message Date
tteckster 0d9316ae06
Update overseerr.sh
tweak
2023-08-03 12:07:46 -04:00
tteckster 26bbc9a18d
Update jellyseerr.sh
tweak
2023-08-03 12:07:15 -04:00
tteckster 1ae673692e
Update jellyseerr.sh
add update path
2023-08-03 12:03:02 -04:00
tteckster 79fb2c3098
Update overseerr.sh
add update path
2023-08-03 11:59:39 -04:00
2 changed files with 30 additions and 2 deletions

View File

@ -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_ok " $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
}

View File

@ -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_ok " $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
}