Script to create an iocage jail on Freenas 11.1U4 from scratch with sonarr, radarr, lidarr, sabnzbd, and plex.
All apps will be placed in the same jail with separate data directories for each app to allow for easy reinstallation/backup.
Thanks to Pentaflake for his work on installing these apps in an iocage jail
Edit file mono-config
Edit mono-config file with your network information and directory data name you want to use and location of your media files and torrents.
APPS_DATA="apps" will allow you to specify the directory for the apps data /mnt/v1/<APPS_DATA>/
SONARR_DATA="sonarrdata" will create a data directory /mnt/v1/apps/sonarrdata to store all the data for that app and the same for the others.
MEDIA_LOCATION will set the location of your media files, in this example /mnt/v1/media
TORRENTS_LOCATION will set the location of your torrent files, in this example /mnt/v1/torrents. A mount point at /mnt/torrents will be available in the jail if you want to add a location to store torrent files. At this time I don't have a torrent app included but you can add it on your own.
PLEX_TYPE needs to be set to plexpass or plex depending on which version you want.
For example SONARR_DATA="sonarrdata" will create a data directory /mnt/v1/apps/sonarrdata to store all the data for that app.
JAIL_IP="192.168.5.57"
DEFAULT_GW_IP="192.168.5.1"
INTERFACE="igb0"
VNET="off"
POOL_PATH="/mnt/v1"
APPS_DATA="apps"
JAIL_NAME="plexapps"
SONARR_DATA="sonarrdata"
RADARR_DATA="radarrdata"
LIDARR_DATA="lidarrdata"
SABNZBD_DATA="sabnzbddata"
PLEX_DATA="plexdata"
MEDIA_LOCATION="media"
TORRENTS_LOCATION="torrents"
PLEX_TYPE="plexpass"
Create an iocage jail to install sonarr, radarr, lidarr, sabnzbd and plex.
Then run this command
./install.sh
Run Sabnzbd wizard Add to Sonarr, Radarr, Lidarr a Indexer, Download Client, and Connect (Plex). Set Media Management to Rename movies and optionally Permissions to yes with File chmod mask 0660, Folder chmod mask 0770, chown User:media, chown Group:media Plex follow the steps including adding libraries. If metadata(thumbnails) doesn't download follow the instructions below. Server/Network/Secure connections is set to Preferred by default
Make sure to add to Server/Network/List of IP addresses and networks that are allowed without auth to your subnet for example 192.168.5.0/24 to allow metadata to be downloaded.
Analyze and Refresh All Metadata for the libraries