A simple bash script to modify Jellyfin's backdrop settings to enable backdrops for ALL USERS automatically, ensuring the change persists through updates when running in a Unraid Docker container.
Two scripts to modify Jellyfin's backdrop settings:
- One for direct Unraid console execution
- One for Unraid User Scripts plugin
- Uses interactive Docker commands
- Runs directly from Unraid console/SSH
- Non-interactive Docker commands
- Runs through Unraid User Scripts plugin
-
Open the Terminal on the Unraid GUI in the top right corner >_
-
Create the script file:
nano jellyfin_enable_backdrops_console.sh
-
In the nano editor:
- Right-click to paste (or use Shift+Insert)
- Paste the entire script contents
-
Save the file:
- Press
Ctrl+O
- Press
Enter
to confirm filename - Press
Ctrl+X
to exit nano
- Press
-
Make the script executable:
chmod +x jellyfin_enable_backdrops_console.sh
- Execute the script:
./jellyfin_enable_backdrops_console.sh
-
Permission Denied:
sudo chmod +x jellyfin_enable_backdrops_console.sh
-
Docker Connection Issues:
- Verify Docker is running
- Check container name with:
docker ps
-
Script Not Working:
- Verify container name
- Check Jellyfin container's file path
- Confirm Docker permissions
- Open Unraid WebUI
- Navigate to "Settings" > "User Scripts"
- Click "Add New Script"
- Name the script (e.g., "Jellyfin Backdrop Modifier")
- Click the gear icon > "Edit Script"
- Paste contents of
jellyfin_enable_backdrops_userscript.sh
- Save the script
- Configure scheduling (optional)
Backups are stored directly in the Jellyfin web directory:
/usr/share/jellyfin/web/backups/
-
Enter the Jellyfin Docker container:
docker exec -it jellyfin /bin/bash
-
Navigate to the web directory:
cd /usr/share/jellyfin/web
-
List available backups:
ls backups/
-
Restore a specific backup:
cp backups/main.jellyfin.bundle.js.backup_YYYYMMDD_HHMMSS main.jellyfin.bundle.js
Replace
YYYYMMDD_HHMMSS
with the actual timestamp of the backup you want to restore
# Enter the container
docker exec -it jellyfin /bin/bash
# Go to the web directory
cd /usr/share/jellyfin/web
# List backups
ls backups/
# Output might look like:
# main.jellyfin.bundle.js.backup_20231215_030405
# Restore a specific backup
cp backups/main.jellyfin.bundle.js.backup_20231215_030405 main.jellyfin.bundle.js
# Exit the container
exit
# Restart Jellyfin container (optional, but recommended)
docker restart jellyfin
- Creates timestamped backups of
main.jellyfin.bundle.js
- Modifies the
enableBackdrops
function - Stores backups in
/usr/share/jellyfin/web/backups/
- Runs automatically daily to ensure modification persists
- Changes
enableBackdrops:function(){return R}
- To
enableBackdrops:function(){return E}
Modify these variables in the script:
CONTAINER_NAME
: Your Jellyfin Docker container nameFILE_PATH
: Verify the path tomain.jellyfin.bundle.js
- Verify Docker container name matches exactly
- Ensure Jellyfin container is running
- Check User Scripts logs for detailed output
- Confirm file path is correct for your Jellyfin version
- Always have a recent backup before modifications
- Modifications might be overwritten by major updates
- Restart Jellyfin after restoration
Tested with:
- Unraid
- Jellyfin Docker Container
- Bash scripting
Distributed under the MIT License.
Open a GitHub issue for any problems.