From 221ed9d2603c40e5c5b4de5ed28a3fb09350796f Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 16 Oct 2024 10:33:45 -0400 Subject: [PATCH] Update jellyseerr-install.sh - refactor code to utilize `pnpm` - fixes https://github.com/tteck/Proxmox/issues/3904 --- install/jellyseerr-install.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install/jellyseerr-install.sh b/install/jellyseerr-install.sh index 38ae8b22..5905d740 100644 --- a/install/jellyseerr-install.sh +++ b/install/jellyseerr-install.sh @@ -18,8 +18,7 @@ $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc $STD apt-get install -y git -$STD apt-get install -y ca-certificates -$STD apt-get install -y gnupg +$STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" @@ -33,17 +32,18 @@ $STD apt-get update $STD apt-get install -y nodejs msg_ok "Installed Node.js" -msg_info "Installing Yarn" -$STD npm install -g yarn -msg_ok "Installed Yarn" +msg_info "Installing pnpm" +$STD npm install -g pnpm +msg_ok "Installed pnpm" msg_info "Installing Jellyseerr (Patience)" git clone -q https://github.com/Fallenbagel/jellyseerr.git /opt/jellyseerr cd /opt/jellyseerr $STD git checkout main -CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000 &>/dev/null -$STD yarn install -$STD yarn build +export CYPRESS_INSTALL_BINARY=0 +$STD pnpm install --frozen-lockfile +export NODE_OPTIONS="--max-old-space-size=3072" +$STD pnpm build mkdir -p /etc/jellyseerr/ cat </etc/jellyseerr/jellyseerr.conf PORT=5055 @@ -63,7 +63,7 @@ EnvironmentFile=/etc/jellyseerr/jellyseerr.conf Environment=NODE_ENV=production Type=exec WorkingDirectory=/opt/jellyseerr -ExecStart=/usr/bin/yarn start +ExecStart=/usr/bin/node dist/index.js [Install] WantedBy=multi-user.target