Files
ProxmoxVE/install/overseerr-install.sh

55 lines
1.1 KiB
Bash
Raw Normal View History

2023-08-01 15:01:54 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
2023-08-01 15:01:54 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://overseerr.dev/
2023-08-01 15:01:54 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2023-08-01 15:01:54 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
git \
ca-certificates
2023-08-01 15:01:54 -04:00
msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="yarn@latest" install_node_and_modules
2023-08-01 15:01:54 -04:00
2023-08-01 16:31:06 -04:00
msg_info "Installing Overseerr (Patience)"
2023-08-01 15:01:54 -04:00
git clone -q https://github.com/sct/overseerr.git /opt/overseerr
cd /opt/overseerr
$STD yarn install
$STD yarn build
2023-08-01 16:31:06 -04:00
msg_ok "Installed Overseerr"
2023-08-01 15:01:54 -04:00
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/overseerr.service
[Unit]
Description=Overseerr Service
After=network.target
[Service]
Type=exec
WorkingDirectory=/opt/overseerr
ExecStart=/usr/bin/yarn start
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now overseerr
2023-08-01 15:01:54 -04:00
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
2024-05-02 13:26:16 -04:00
$STD apt-get -y autoremove
$STD apt-get -y autoclean
2023-08-01 15:01:54 -04:00
msg_ok "Cleaned"