diff options
author | dennis <dennis@mrslave> | 2019-10-19 23:07:48 +0200 |
---|---|---|
committer | dennis <dennis@mrslave> | 2019-10-19 23:07:48 +0200 |
commit | 0986bbc7405d11d15a0c9fb0670995849dd0530b (patch) | |
tree | 8e7f74fbc448864fd2df456f0e5e9d078145d026 /mkosi.postinst | |
download | mkosi-sonarr-0986bbc7405d11d15a0c9fb0670995849dd0530b.tar.gz |
initial commit
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 |