diff options
l--------- | mkosi.extra/etc/systemd/system/multi-user.target.wants/sonarr.service | 1 | ||||
-rw-r--r-- | mkosi.extra/etc/systemd/system/radarr.service (renamed from mkosi.extra/etc/systemd/system/sonarr.service) | 0 | ||||
-rwxr-xr-x | mkosi.postinst | 28 |
3 files changed, 21 insertions, 8 deletions
diff --git a/mkosi.extra/etc/systemd/system/multi-user.target.wants/sonarr.service b/mkosi.extra/etc/systemd/system/multi-user.target.wants/sonarr.service deleted file mode 120000 index c518c7e..0000000 --- a/mkosi.extra/etc/systemd/system/multi-user.target.wants/sonarr.service +++ /dev/null @@ -1 +0,0 @@ -../sonarr.service
\ No newline at end of file diff --git a/mkosi.extra/etc/systemd/system/sonarr.service b/mkosi.extra/etc/systemd/system/radarr.service index 86b461b..86b461b 100644 --- a/mkosi.extra/etc/systemd/system/sonarr.service +++ b/mkosi.extra/etc/systemd/system/radarr.service diff --git a/mkosi.postinst b/mkosi.postinst index 1ed3057..1211413 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -1,21 +1,35 @@ #!/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 +# Add update- and security-repositories, and perform upgrade +echo "deb http://no.archive.ubuntu.com $(lsb_release --short --codename)-security main universe" >> /etc/apt/sources.list +echo "deb http://no.archive.ubuntu.com $(lsb_release --short --codename)-updates main universe" >> /etc/apt/sources.list +apt-get update && apt-get --yes full-upgrade && apt-get --yes autoremove -apt update +# mono +#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF +curl https://download.mono-project.com/repo/xamarin.gpg | apt-key add - +echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list -apt install --yes nzbdrone +apt-get update + +apt-get install --yes mono-devel + +# radarr +cd /opt +curl -L -O $( curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) +tar -xvzf Radarr.develop.*.linux.tar.gz groupadd --system --gid 997 warez -useradd --system --gid warez --uid 997 --home-dir /opt/NzbDrone warez +useradd --system --gid warez --uid 997 --home-dir /opt/Radarr warez + +chown -R warez: /opt/Radarr -chown -R warez: /opt/NzbDrone +# system service +systemctl enable radarr.service |