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.
13 lines
264 B
Bash
13 lines
264 B
Bash
#!/bin/bash
|
|
|
|
# Jellyfin Post-Removal Script (Debian)
|
|
# Runs after package is removed
|
|
|
|
# Remove jellyfin user/group
|
|
if id "jellyfin" &>/dev/null; then
|
|
echo "Removing jellyfin user and group..."
|
|
userdel jellyfin || true
|
|
fi
|
|
|
|
echo "Jellyfin has been removed."
|