Files
ProxmoxVE/install/tautulli-install.sh

59 lines
1.3 KiB
Bash
Raw Normal View History

2023-05-13 20:41:46 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
2023-05-13 20:41:46 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://tautulli.com/
2023-05-13 20:41:46 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2023-05-13 20:41:46 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
2025-12-24 14:22:49 +01:00
$STD apt install -y git
2025-10-09 19:43:23 +02:00
msg_ok "Installed Dependencies"
2023-06-21 10:43:49 -04:00
2025-12-24 14:22:49 +01:00
PYTHON_VERSION="3.13" setup_uv
fetch_and_deploy_gh_release "Tautulli" "Tautulli/Tautulli" "tarball"
2023-05-13 20:41:46 -04:00
msg_info "Installing Tautulli"
2025-12-24 14:22:49 +01:00
cd /opt/Tautulli
TAUTULLI_VERSION=$(get_latest_github_release "Tautulli/Tautulli" "false")
echo "${TAUTULLI_VERSION}" >/opt/Tautulli/version.txt
echo "master" >/opt/Tautulli/branch.txt
$STD uv venv
$STD source /opt/Tautulli/.venv/bin/activate
$STD uv pip install -r requirements.txt
$STD uv pip install pyopenssl
2023-05-13 20:41:46 -04:00
msg_ok "Installed Tautulli"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/tautulli.service
[Unit]
Description=Tautulli
After=syslog.target network.target
[Service]
WorkingDirectory=/opt/Tautulli/
Restart=on-failure
RestartSec=5
Type=simple
2025-12-24 14:22:49 +01:00
ExecStart=/opt/Tautulli/.venv/bin/python3 /opt/Tautulli/Tautulli.py
2023-05-13 20:41:46 -04:00
KillSignal=SIGINT
TimeoutStopSec=20
SyslogIdentifier=tautulli
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now tautulli
msg_ok "Created Service"
motd_ssh
2023-05-15 07:39:30 -04:00
customize
cleanup_lxc