summaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
blob: 1ed30577eb3006cc50d8af1254902293f23e0905 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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

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