2023-10-29 17:53:59 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2026-01-06 13:28:12 +01:00
|
|
|
# Copyright (c) 2021-2026 tteck
|
2023-10-29 17:53:59 -04:00
|
|
|
# Author: tteck (tteckster)
|
2025-03-04 17:54:20 +01:00
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
|
|
|
# Source: https://docs.unmanic.app/
|
2023-10-29 17:53:59 -04:00
|
|
|
|
2025-03-24 14:20:56 +01:00
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
2023-10-29 17:53:59 -04:00
|
|
|
color
|
|
|
|
|
verb_ip6
|
|
|
|
|
catch_errors
|
|
|
|
|
setting_up_container
|
|
|
|
|
network_check
|
|
|
|
|
update_os
|
|
|
|
|
|
2023-10-29 20:52:15 -04:00
|
|
|
msg_info "Installing Dependencies (Patience)"
|
2025-10-09 19:43:23 +02:00
|
|
|
$STD apt install -y \
|
|
|
|
|
ffmpeg \
|
|
|
|
|
python3-pip
|
2023-10-29 17:53:59 -04:00
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
2025-12-17 14:37:31 +01:00
|
|
|
setup_hwaccel
|
2023-10-29 17:53:59 -04:00
|
|
|
|
|
|
|
|
msg_info "Installing Unmanic"
|
2026-06-22 21:27:16 +10:00
|
|
|
$STD pip3 install --break-system-packages unmanic
|
2023-10-29 17:53:59 -04:00
|
|
|
msg_ok "Installed Unmanic"
|
|
|
|
|
|
|
|
|
|
msg_info "Creating Service"
|
2025-03-24 14:20:56 +01:00
|
|
|
cat <<EOF >/etc/systemd/system/unmanic.service
|
2023-10-29 17:53:59 -04:00
|
|
|
[Unit]
|
|
|
|
|
Description=Unmanic - Library Optimiser
|
|
|
|
|
After=network-online.target
|
|
|
|
|
StartLimitInterval=200
|
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
ExecStart=/usr/local/bin/unmanic
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=30
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
EOF
|
|
|
|
|
systemctl enable --now -q unmanic.service
|
|
|
|
|
msg_ok "Created Service"
|
|
|
|
|
|
|
|
|
|
motd_ssh
|
|
|
|
|
customize
|
2025-11-22 17:27:13 +01:00
|
|
|
cleanup_lxc
|