From 55f6049cd1280d6a6dcc2cd63f86d8d04e9b9435 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sun, 15 Feb 2026 12:17:33 +0100 Subject: [PATCH] Create seer-install.sh --- install/seer-install.sh | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 install/seer-install.sh diff --git a/install/seer-install.sh b/install/seer-install.sh new file mode 100644 index 000000000..a3a33a5f9 --- /dev/null +++ b/install/seer-install.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: CrazyWolf13 +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://docs.seerr.dev/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y build-essential +msg_ok "Installed Dependencies" + +fetch_and_deploy_gh_release "seerr" "seerr-team/seerr" "tarball" +pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/seerr/package.json) +NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs + +msg_info "Installing Seerr (Patience)" +export CYPRESS_INSTALL_BINARY=0 +cd /opt/seerr +$STD pnpm install --frozen-lockfile +export NODE_OPTIONS="--max-old-space-size=3072" +$STD pnpm build +mkdir -p /etc/seerr/ +cat </etc/seerr/seerr.conf +## Seerr's default port is 5055, if you want to use both, change this. +## specify on which port to listen +PORT=5055 + +## specify on which interface to listen, by default seerr listens on all interfaces +HOST=0.0.0.0 + +## Uncomment if you want to force Node.js to resolve IPv4 before IPv6 (advanced users only) +# FORCE_IPV4_FIRST=true +EOF +msg_ok "Installed Seerr" + +msg_info "Creating Service" +cat </etc/systemd/system/seerr.service +[Unit] +Description=Seerr Service +Wants=network-online.target +After=network-online.target + +[Service] +EnvironmentFile=/etc/seerr/seerr.conf +Environment=NODE_ENV=production +Type=exec +Restart=on-failure +WorkingDirectory=/opt/seerr +ExecStart=/usr/bin/node dist/index.js + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now seerr +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc