From 0986bbc7405d11d15a0c9fb0670995849dd0530b Mon Sep 17 00:00:00 2001 From: dennis Date: Sat, 19 Oct 2019 23:07:48 +0200 Subject: initial commit --- mkosi.postinst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 mkosi.postinst (limited to 'mkosi.postinst') diff --git a/mkosi.postinst b/mkosi.postinst new file mode 100755 index 0000000..62bf4ea --- /dev/null +++ b/mkosi.postinst @@ -0,0 +1,17 @@ +#!/bin/sh +set -ex + +export DEBIAN_FRONTEND=noninteractive +export XDG_CONFIG_HOME="/config/xdg" + +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 -- cgit v1.2.3