22 lines
1.3 KiB
Bash
Executable File
22 lines
1.3 KiB
Bash
Executable File
#!/usr/local/bin/bash
|
|
# This file contains the install script for radarr
|
|
|
|
# Check if dataset for completed download and it parent dataset exist, create if they do not.
|
|
createmount radarr ${global_dataset_downloads}
|
|
createmount radarr ${global_dataset_downloads}/complete /mnt/fetched
|
|
|
|
# Check if dataset for media library and the dataset for movies exist, create if they do not.
|
|
createmount radarr ${global_dataset_media}
|
|
createmount radarr ${global_dataset_media}/movies /mnt/movies
|
|
|
|
iocage exec radarr "fetch https://github.com/Radarr/Radarr/releases/download/v0.2.0.1480/Radarr.develop.0.2.0.1480.linux.tar.gz -o /usr/local/share"
|
|
iocage exec radarr "tar -xzvf /usr/local/share/Radarr.develop.0.2.0.1480.linux.tar.gz -C /usr/local/share"
|
|
iocage exec radarr rm /usr/local/share/Radarr.develop.0.2.0.1480.linux.tar.gz
|
|
iocage exec radarr "pw user add radarr -c radarr -u 352 -d /nonexistent -s /usr/bin/nologin"
|
|
iocage exec radarr chown -R radarr:radarr /usr/local/share/Radarr /config
|
|
iocage exec radarr mkdir /usr/local/etc/rc.d
|
|
cp ${SCRIPT_DIR}/jails/radarr/includes/radarr.rc /mnt/${global_dataset_iocage}/jails/radarr/root/usr/local/etc/rc.d/radarr
|
|
iocage exec radarr chmod u+x /usr/local/etc/rc.d/radarr
|
|
iocage exec radarr sysrc "radarr_enable=YES"
|
|
iocage exec radarr service radarr restart
|