diff --git a/ct/jellyfin.sh b/ct/jellyfin.sh index 34f35799a..d2ed131f7 100644 --- a/ct/jellyfin.sh +++ b/ct/jellyfin.sh @@ -9,7 +9,7 @@ APP="Jellyfin" var_tags="${var_tags:-media}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" -var_disk="${var_disk:-8}" +var_disk="${var_disk:-16}" var_os="${var_os:-ubuntu}" var_version="${var_version:-24.04}" var_unprivileged="${var_unprivileged:-1}" @@ -27,11 +27,18 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Updating ${APP} LXC" - $STD apt-get update - $STD apt-get -y upgrade - $STD apt-get -y --with-new-pkgs upgrade jellyfin jellyfin-server - msg_ok "Updated ${APP} LXC" + msg_info "Updating Jellyfin" + 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 + $STD apt update + $STD apt -y upgrade + $STD apt -y --with-new-pkgs upgrade jellyfin jellyfin-server + msg_ok "Updated Jellyfin" + msg_ok "Update Successfully!" exit } diff --git a/frontend/public/json/jellyfin.json b/frontend/public/json/jellyfin.json index 4dedd7103..5af83fbee 100644 --- a/frontend/public/json/jellyfin.json +++ b/frontend/public/json/jellyfin.json @@ -21,7 +21,7 @@ "resources": { "cpu": 2, "ram": 2048, - "hdd": 8, + "hdd": 16, "os": "ubuntu", "version": "24.04" } diff --git a/install/jellyfin-install.sh b/install/jellyfin-install.sh index 1c459305f..256fc6023 100644 --- a/install/jellyfin-install.sh +++ b/install/jellyfin-install.sh @@ -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 </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"