#!/bin/bash
# Jellyfin prerm script - runs before package removal

set -e

# Stop the service
if [[ -f /etc/systemd/system/jellyfin.service ]]; then
    systemctl stop jellyfin.service || true
    systemctl disable jellyfin.service || true
fi

exit 0
