From 46d148719109bf15d65b2816d143eb6fdd75b6a8 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sat, 25 Apr 2020 19:47:21 +0200 Subject: [PATCH] Add plex transcoding ramdisk creation (#79) --- jails/plex/install.sh | 6 ++++++ jails/plex/readme.md | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/jails/plex/install.sh b/jails/plex/install.sh index 2e3af92a..460784bf 100755 --- a/jails/plex/install.sh +++ b/jails/plex/install.sh @@ -14,6 +14,12 @@ createmount plex ${global_dataset_media}/movies /mnt/media/movies createmount plex ${global_dataset_media}/music /mnt/media/music createmount plex ${global_dataset_media}/shows /mnt/media/shows +# Create plex ramdisk if specified +if [ -z "${plex_ramdisk}" ]; then + echo "no ramdisk specified for plex, continuing without randisk" +else + iocage fstab -a plex tmpfs /tmp_transcode tmpfs rw,size=${plex_ramdisk},mode=1777 0 0 +fi iocage exec plex chown -R plex:plex /config diff --git a/jails/plex/readme.md b/jails/plex/readme.md index 4d5b5046..171874af 100755 --- a/jails/plex/readme.md +++ b/jails/plex/readme.md @@ -5,6 +5,10 @@ For more information about plex, please see the Plex website: +### Config Parameters: + +- ramdisk: Specify the `size` parameter to create a transcoding ramdisk under /tmp_transcode. Requires manual setting it un plex to be used for transcoding. (optional) + # Original plex install script guide https://www.ixsystems.com/community/resources/fn11-3-iocage-jails-plex-tautulli-sonarr-radarr-lidarr-jackett-transmission-organizr.58/ \ No newline at end of file