mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-03 20:03:25 +01:00
* Recreate virtualenv during update; remove some superfluous commands * backup and restore tautulli.db during update * ensure clear virtualenv
59 lines
1.3 KiB
Bash
59 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 tteck
|
|
# Author: tteck (tteckster)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://tautulli.com/
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
msg_info "Installing Dependencies"
|
|
$STD apt install -y git
|
|
msg_ok "Installed Dependencies"
|
|
|
|
PYTHON_VERSION="3.13" setup_uv
|
|
fetch_and_deploy_gh_release "Tautulli" "Tautulli/Tautulli" "tarball"
|
|
|
|
msg_info "Installing Tautulli"
|
|
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
|
|
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
|
|
ExecStart=/opt/Tautulli/.venv/bin/python3 /opt/Tautulli/Tautulli.py
|
|
KillSignal=SIGINT
|
|
TimeoutStopSec=20
|
|
SyslogIdentifier=tautulli
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
EOF
|
|
systemctl enable -q --now tautulli
|
|
msg_ok "Created Service"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|