mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-23 02:04:42 +02:00
Update jellyseerr-install.sh
- refactor code to utilize `pnpm` - fixes https://github.com/tteck/Proxmox/issues/3904
This commit is contained in:
parent
8847505782
commit
221ed9d260
@ -18,8 +18,7 @@ $STD apt-get install -y curl
|
|||||||
$STD apt-get install -y sudo
|
$STD apt-get install -y sudo
|
||||||
$STD apt-get install -y mc
|
$STD apt-get install -y mc
|
||||||
$STD apt-get install -y git
|
$STD apt-get install -y git
|
||||||
$STD apt-get install -y ca-certificates
|
$STD apt-get install -y gpg
|
||||||
$STD apt-get install -y gnupg
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Node.js Repository"
|
msg_info "Setting up Node.js Repository"
|
||||||
@ -33,17 +32,18 @@ $STD apt-get update
|
|||||||
$STD apt-get install -y nodejs
|
$STD apt-get install -y nodejs
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Yarn"
|
msg_info "Installing pnpm"
|
||||||
$STD npm install -g yarn
|
$STD npm install -g pnpm
|
||||||
msg_ok "Installed Yarn"
|
msg_ok "Installed pnpm"
|
||||||
|
|
||||||
msg_info "Installing Jellyseerr (Patience)"
|
msg_info "Installing Jellyseerr (Patience)"
|
||||||
git clone -q https://github.com/Fallenbagel/jellyseerr.git /opt/jellyseerr
|
git clone -q https://github.com/Fallenbagel/jellyseerr.git /opt/jellyseerr
|
||||||
cd /opt/jellyseerr
|
cd /opt/jellyseerr
|
||||||
$STD git checkout main
|
$STD git checkout main
|
||||||
CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000 &>/dev/null
|
export CYPRESS_INSTALL_BINARY=0
|
||||||
$STD yarn install
|
$STD pnpm install --frozen-lockfile
|
||||||
$STD yarn build
|
export NODE_OPTIONS="--max-old-space-size=3072"
|
||||||
|
$STD pnpm build
|
||||||
mkdir -p /etc/jellyseerr/
|
mkdir -p /etc/jellyseerr/
|
||||||
cat <<EOF >/etc/jellyseerr/jellyseerr.conf
|
cat <<EOF >/etc/jellyseerr/jellyseerr.conf
|
||||||
PORT=5055
|
PORT=5055
|
||||||
@ -63,7 +63,7 @@ EnvironmentFile=/etc/jellyseerr/jellyseerr.conf
|
|||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
Type=exec
|
Type=exec
|
||||||
WorkingDirectory=/opt/jellyseerr
|
WorkingDirectory=/opt/jellyseerr
|
||||||
ExecStart=/usr/bin/yarn start
|
ExecStart=/usr/bin/node dist/index.js
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user