#!/bin/sh set -ex export DEBIAN_FRONTEND=noninteractive export XDG_CONFIG_HOME="/config/xdg" # motd chmod 644 /etc/update-motd.d/* systemctl mask motd-news.service systemctl mask motd-news.timer # Add update- and security-repositories, and perform upgrade RELEASE=$(cat /etc/lsb-release | grep DISTRIB_CODENAME | awk -F'=' '{print $2}') echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-security main universe" >> /etc/apt/sources.list echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-updates main universe" >> /etc/apt/sources.list apt update && apt --yes full-upgrade && apt --yes autoremove # sonarr apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xA236C58F409091A18ACA53CBEBFF6B99D9B78493 echo "deb http://apt.sonarr.tv/ master main" > /etc/apt/sources.list.d/sonarr.list apt update apt install --yes nzbdrone groupadd --system --gid 997 warez useradd --system --gid warez --uid 997 --home-dir /opt/NzbDrone warez chown -R warez: /opt/NzbDrone