Compare commits

...

4 Commits

Author SHA1 Message Date
tteckster 22e7ff1f17
Update jellyseerr.sh
tweak
2024-10-17 05:40:01 -04:00
tteckster badff00ee2
Update jellyseerr.sh
add low storage check
2024-10-17 05:30:29 -04:00
tteckster 0665e77a1c
Update jellyseerr.sh
more tweaks
2024-10-17 05:15:34 -04:00
tteckster 6e7b5d8022
Update jellyseerr.sh
tweak
2024-10-17 04:27:26 -04:00
1 changed files with 6 additions and 4 deletions

View File

@ -55,6 +55,10 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -d /opt/jellyseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
if (( $(df /boot | awk 'NR==2{gsub("%","",$5); print $5}') > 80 )); then
read -r -p "Warning: Storage is dangerously low, continue anyway? <y/N> " prompt
[[ ${prompt,,} =~ ^(y|yes)$ ]] || exit
fi
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "SET RESOURCES" "Please set the resources in your Jellyseerr LXC to 4vcpu and 4096RAM for the build process before continuing" 10 75
if ! command -v pnpm &> /dev/null; then
msg_error "pnpm not found. Installing..."
@ -63,16 +67,14 @@ else
msg_ok "pnpm is already installed."
fi
msg_info "Updating $APP"
systemctl stop jellyseerr
cd /opt/jellyseerr
output=$(git pull)
git pull &>/dev/null
output=$(git pull --no-rebase)
if echo "$output" | grep -q "Already up to date."
then
msg_ok "$APP is already up to date."
systemctl start jellyseerr
exit
fi
systemctl stop jellyseerr
export CYPRESS_INSTALL_BINARY=0
pnpm install --frozen-lockfile &>/dev/null
export NODE_OPTIONS="--max-old-space-size=3072"