Files
docker-deployment/build/scripts/sabnzbd.sh
2016-04-20 22:48:31 +01:00

24 lines
699 B
Bash

#!/bin/bash
set -e
source /build/config
set -x
## Environment
export_env RAR_VERSION 4.1.1
export_env SABNZBD_CONFIG /host/etc/sabnzbd/sabnzbd.ini
export_env SABNZBD_DATA /host/var/lib/sabnzbd
## SABnzbd
echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu $(lsb_release -c -s) main" | sudo tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F
apt update
apt_install_permanent sabnzbdplus
## Utilities
apt_install_permanent unzip par2 python-openssl python-yenc
## Rar
cd /opt
wget http://www.rarlab.com/rar/rarlinux-x64-$RAR_VERSION.tar.gz
tar xzf rarlinux-x64-$RAR_VERSION.tar.gz
ln -s /opt/rar/rar /usr/bin