Jellyfin + yt-dlp + long flight = Magic
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
456 B

#!/usr/bin/env bash
# Exit 1 if program not run as root
# We need to run 'chown' which requires root`
if [ "$EUID" -ne 0 ]; then
echo "Please run with sudo or as root"
exit 1
fi
# Create base dir
mkdir data
# Create Jellyfin directories
mkdir data/jellyfin
mkdir data/jellyfin/cache
mkdir data/jellyfin/config
mkdir data/jellyfin/media
mkdir data/jellyfin/media/pirate-youtube
# Create batch file
touch data/batch.txt
sudo chown -R 1337:1337 data