Update jellyseerr-install.sh

switch back to the main branch
This commit is contained in:
tteckster 2024-07-04 10:56:52 -04:00 committed by GitHub
parent dad9da5e67
commit 8562dd1b93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 10 deletions

View File

@ -33,15 +33,17 @@ $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 pnpm" msg_info "Installing Yarn"
$STD npm install -g pnpm $STD npm install -g yarn
msg_ok "Installed pnpm" msg_ok "Installed Yarn"
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
CYPRESS_INSTALL_BINARY=0 pnpm install --frozen-lockfile &>/dev/null $STD git checkout main
$STD pnpm build CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000 &>/dev/null
$STD yarn install
$STD yarn 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
@ -53,17 +55,15 @@ msg_ok "Installed Jellyseerr"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/jellyseerr.service cat <<EOF >/etc/systemd/system/jellyseerr.service
[Unit] [Unit]
Description=Jellyseerr Service Description=jellyseerr Service
Wants=network-online.target After=network.target
After=network-online.target
[Service] [Service]
EnvironmentFile=/etc/jellyseerr/jellyseerr.conf EnvironmentFile=/etc/jellyseerr/jellyseerr.conf
Environment=NODE_ENV=production Environment=NODE_ENV=production
Type=exec Type=exec
Restart=on-failure
WorkingDirectory=/opt/jellyseerr WorkingDirectory=/opt/jellyseerr
ExecStart=/usr/bin/node dist/index.js ExecStart=/usr/bin/yarn start
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target