#!/bin/sh set -ex export DEBIAN_FRONTEND=noninteractive # 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 echo "deb http://no.archive.ubuntu.com $(lsb_release --short --codename)-security main universe" >> /etc/apt/sources.list echo "deb http://no.archive.ubuntu.com $(lsb_release --short --codename)-updates main universe" >> /etc/apt/sources.list apt-get update && apt-get --yes full-upgrade && apt-get --yes autoremove # mono #apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF curl https://download.mono-project.com/repo/xamarin.gpg | apt-key add - echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list apt-get update apt-get install --yes mono-devel # radarr cd /opt curl -L -O $( curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) tar -xvzf Radarr.develop.*.linux.tar.gz groupadd --system --gid 997 warez useradd --system --gid warez --uid 997 --home-dir /opt/Radarr warez chown -R warez: /opt/Radarr # system service systemctl enable radarr.service