summaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-xmkosi.postinst11
1 files changed, 5 insertions, 6 deletions
diff --git a/mkosi.postinst b/mkosi.postinst
index 4c77109..dda2f81 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -20,13 +20,12 @@ echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" > /et
# sonarr
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
+echo "deb http://apt.sonarr.tv/ubuntu focal main" > /etc/apt/sources.list.d/sonarr.list
apt-get update
-apt-get install --yes nzbdrone
+groupadd --system --gid 997 sonarr
+useradd --system --gid sonarr --uid 997 --home-dir /var/lib/sonarr --create-home sonarr
-groupadd --system --gid 997 warez
-useradd --system --gid warez --uid 997 --home-dir /opt/NzbDrone warez
-
-chown -R warez: /opt/NzbDrone
+apt-get install --yes sonarr
+systemctl enable sonarr