diff options
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-x | mkosi.postinst | 17 |
1 files changed, 17 insertions, 0 deletions
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 |