scale-catalog/update/sonarr.sh

10 lines
643 B
Bash
Raw Normal View History

2020-02-27 18:58:24 +00:00
iocage exec sonarr service sonarr stop
2020-02-27 19:06:16 +00:00
iocage update sonarr
2020-02-27 19:16:19 +00:00
iocage exec sonarr "pkg update && pkg upgrade -y"
2020-02-27 18:58:24 +00:00
iocage exec sonarr "fetch http://download.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz -o /usr/local/share"
iocage exec sonarr "tar -xzvf /usr/local/share/NzbDrone.master.tar.gz -C /usr/local/share"
iocage exec sonarr rm /usr/local/share/NzbDrone.master.tar.gz
iocage exec sonarr chown -R sonarr:sonarr /usr/local/share/NzbDrone /config
cp ../includes/sonarr-conf/sonarr.rc /mnt/tank/iocage/jails/sonarr/root/usr/local/etc/rc.d/sonarr
iocage exec sonarr chmod u+x /usr/local/etc/rc.d/sonarr
iocage exec sonarr service sonarr start