8914f4dce9
- Created `TV_SHOWS_SQL_QUERY_PATTERNS.md` to document SQL query patterns for TV shows, including performance issues and missing indexes. - Added `README.md` for Linux package building, detailing steps for creating Debian and Red Hat packages. - Implemented build scripts for Debian and Red Hat, including service files and post-installation hooks. - Added necessary scripts for managing Jellyfin service lifecycle on both Debian and Red Hat systems. - Included package specifications and installation instructions for both distributions.
30 lines
830 B
Bash
30 lines
830 B
Bash
#!/bin/bash
|
|
# Jellyfin postrm script - runs after package removal
|
|
|
|
set -e
|
|
|
|
# Remove systemd service file
|
|
if [[ -f /etc/systemd/system/jellyfin.service ]]; then
|
|
rm -f /etc/systemd/system/jellyfin.service
|
|
systemctl daemon-reload
|
|
fi
|
|
|
|
# Optional: Uncomment the lines below to completely remove user and data on uninstall
|
|
# WARNING: This will delete all Jellyfin data, libraries, and settings!
|
|
|
|
# Remove jellyfin user
|
|
# userdel jellyfin || true
|
|
|
|
# Remove data directories
|
|
# rm -rf /var/lib/jellyfin
|
|
# rm -rf /var/log/jellyfin
|
|
# rm -rf /var/cache/jellyfin
|
|
# rm -rf /etc/jellyfin
|
|
|
|
echo "Jellyfin Media Server uninstalled."
|
|
echo "Note: User data in /var/lib/jellyfin has been preserved."
|
|
echo "To completely remove all data, run:"
|
|
echo " sudo rm -rf /var/lib/jellyfin /var/log/jellyfin /var/cache/jellyfin /etc/jellyfin"
|
|
|
|
exit 0
|