Radarr for iocage

Status
Not open for further replies.

kjake

Dabbler
Joined
Mar 17, 2017
Messages
29
FN10 convert, re-writing all of my Docker containers...

There is a Sonarr plugin for iocage, but nothing for Radarr, so I put something together for a jail.

This was written for an existing installation; not tested as a fresh install. Will allow radarr to update itself if you enable it.


Code:
#!/bin/sh

iocage stop radarr
iocage destroy -f radarr
echo '{"pkgs":["radarr"]}' > /tmp/pkg.json
iocage create --name "radarr" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="vnet0|[RADARR_IP]/24" vnet="on" allow_raw_sockets="1" defaultrouter="[DEFAULT_GW_IP]" boot="on" host_hostname="radarr"
rm /tmp/pkg.json
iocage fstab -a radarr /mnt/[zpool]/[common_jail_folder_outside_of_iocage]/radarr/config /config nullfs rw 0 0
iocage fstab -a radarr /mnt/[zpool]/free/nas/path/for/downloads /downloads nullfs rw 0 0
iocage fstab -a radarr /mnt/[zpool]/free/nas/path/to/movies /movies nullfs rw 0 0
iocage exec radarr chown -R radarr /config
iocage exec radarr chown -R radarr /usr/local/share/radarr
iocage exec radarr sysrc -f /etc/rc.conf radarr_data_dir="/config"
iocage exec radarr sysrc -f /etc/rc.conf radarr_enable="YES"
iocage restart radarr
 
Status
Not open for further replies.
Top