blob: 700b3c3d1b69c7ba4c4d5f814050563dae589850 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/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/ubuntu $(lsb_release --short --codename)-security main universe" >> /etc/apt/sources.list
echo "deb http://no.archive.ubuntu.com/ubuntu $(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-$(lsb_release --short --codename) 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
|