mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-18 16:02:59 +01:00
improve hardware-acceleration setup to centralize service user group management. Install scripts (emby, plex, ollama, channels) now pass a service user to setup_hwaccel (or no user for channels) and have had inline /etc/group sed/usermod tweaks removed. misc/tools.func updated: setup_hwaccel accepts an optional service_user and forwards it to _setup_gpu_permissions, which now adds the service user to render and video groups if provided. This consolidates GPU permission changes in one place and removes duplicated per-service group edits.
34 lines
766 B
Bash
34 lines
766 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: tteck (tteckster) | MickLesk (CanbiZ)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://www.plex.tv/
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
setup_hwaccel "plex"
|
|
|
|
msg_info "Setting Up Plex Media Server Repository"
|
|
setup_deb822_repo \
|
|
"plexmediaserver" \
|
|
"https://downloads.plex.tv/plex-keys/PlexSign.v2.key" \
|
|
"https://repo.plex.tv/deb/" \
|
|
"public" \
|
|
"main"
|
|
msg_ok "Set Up Plex Media Server Repository"
|
|
|
|
msg_info "Installing Plex Media Server"
|
|
$STD apt install -y plexmediaserver
|
|
msg_ok "Installed Plex Media Server"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|