2024-06-27 01:47:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-10-27 20:07:25 +01:00
|
|
|
JELLYFIN=jellyfin/jellyfin
|
|
|
|
|
2024-06-27 01:47:44 +02:00
|
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
pwd
|
|
|
|
(
|
2024-06-29 18:29:40 +02:00
|
|
|
cd ../Jellyfin.Plugin.SmartPlaylist/
|
2024-06-27 01:47:44 +02:00
|
|
|
dotnet build
|
|
|
|
)
|
|
|
|
pwd
|
2024-06-29 18:29:40 +02:00
|
|
|
mkdir -p ./cache ./media ./config/plugins/jellyfin-smart-playlist
|
|
|
|
cp ../Jellyfin.Plugin.SmartPlaylist/bin/Debug/net8.0/jellyfin-smart-playlist.dll ./config/plugins/jellyfin-smart-playlist/
|
2024-10-27 20:07:25 +01:00
|
|
|
docker pull "$JELLYFIN"
|
2024-06-27 01:47:44 +02:00
|
|
|
docker run --rm --user "$(id -u):$(id -g)" \
|
|
|
|
-v ./cache:/cache \
|
|
|
|
-v ./config:/config \
|
2024-06-29 18:29:40 +02:00
|
|
|
-v ./media:/media \
|
2024-06-27 01:47:44 +02:00
|
|
|
-p 8096:8096 \
|
2024-10-27 20:07:25 +01:00
|
|
|
"$JELLYFIN"
|