mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Jellyfin: ensure libjemalloc is used / increase hdd space (#8494)
* Jellyfin: ensure libjemalloc used * Enhance Jellyfin update script with libjemalloc checks Added checks for libjemalloc2 installation and symlink creation before updating Jellyfin. * Change apt-get to apt for installing libjemalloc2 * Increase default disk size from 8GB to 16GB * Increase HDD size for Jellyfin configuration Updated HDD size from 8GB to 16GB in jellyfin.json.
This commit is contained in:
		@@ -26,13 +26,16 @@ msg_ok "Set Up Hardware Acceleration"
 | 
			
		||||
 | 
			
		||||
msg_info "Installing Jellyfin"
 | 
			
		||||
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
 | 
			
		||||
# If the keyring directory is absent, create it
 | 
			
		||||
if ! dpkg -s libjemalloc2 >/dev/null 2>&1; then
 | 
			
		||||
  $STD apt install -y libjemalloc2
 | 
			
		||||
fi
 | 
			
		||||
if [[ ! -f /usr/lib/libjemalloc.so ]]; then
 | 
			
		||||
  ln -sf /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 /usr/lib/libjemalloc.so
 | 
			
		||||
fi
 | 
			
		||||
if [[ ! -d /etc/apt/keyrings ]]; then
 | 
			
		||||
  mkdir -p /etc/apt/keyrings
 | 
			
		||||
fi
 | 
			
		||||
# Download the repository signing key and install it to the keyring directory
 | 
			
		||||
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | gpg --dearmor --yes --output /etc/apt/keyrings/jellyfin.gpg
 | 
			
		||||
# Install the Deb822 format jellyfin.sources entry
 | 
			
		||||
cat <<EOF >/etc/apt/sources.list.d/jellyfin.sources
 | 
			
		||||
Types: deb
 | 
			
		||||
URIs: https://repo.jellyfin.org/${PCT_OSTYPE}
 | 
			
		||||
@@ -41,10 +44,11 @@ Components: main
 | 
			
		||||
Architectures: amd64
 | 
			
		||||
Signed-By: /etc/apt/keyrings/jellyfin.gpg
 | 
			
		||||
EOF
 | 
			
		||||
# Install Jellyfin using the metapackage (which will fetch jellyfin-server, jellyfin-web, and jellyfin-ffmpeg5)
 | 
			
		||||
$STD apt-get update
 | 
			
		||||
$STD apt-get install -y jellyfin
 | 
			
		||||
 | 
			
		||||
$STD apt update
 | 
			
		||||
$STD apt install -y jellyfin
 | 
			
		||||
sed -i 's/"MinimumLevel": "Information"/"MinimumLevel": "Error"/g' /etc/jellyfin/logging.json
 | 
			
		||||
 | 
			
		||||
chown -R jellyfin:adm /etc/jellyfin
 | 
			
		||||
sleep 10
 | 
			
		||||
systemctl restart jellyfin
 | 
			
		||||
@@ -59,6 +63,7 @@ motd_ssh
 | 
			
		||||
customize
 | 
			
		||||
 | 
			
		||||
msg_info "Cleaning up"
 | 
			
		||||
$STD apt-get -y autoremove
 | 
			
		||||
$STD apt-get -y autoclean
 | 
			
		||||
$STD apt -y autoremove
 | 
			
		||||
$STD apt -y autoclean
 | 
			
		||||
$STD apt -y clean
 | 
			
		||||
msg_ok "Cleaned"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user