summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordennis <dennis@mrslave>2020-04-28 20:32:24 +0200
committerdennis <dennis@mrslave>2020-04-28 20:32:24 +0200
commit440b609f2ea69f9612c73c1d2c02b41db216bf9c (patch)
tree19217ee5fcc1e3015d7c9f121841c23e1bc93e03
parentexchanging apt with apt-get for better script-compatability (diff)
downloadmkosi-radarr-440b609f2ea69f9612c73c1d2c02b41db216bf9c.tar.gz
fork from sonarr to radarr
-rw-r--r--mkosi.default11
-rw-r--r--mkosi.extra/etc/systemd/system/radarr.service4
-rw-r--r--mkosi.nspawn9
-rwxr-xr-xmkosi.postinst6
4 files changed, 17 insertions, 13 deletions
diff --git a/mkosi.default b/mkosi.default
index b507672..5906807 100644
--- a/mkosi.default
+++ b/mkosi.default
@@ -1,15 +1,20 @@
[Distribution]
Distribution=ubuntu
-Release=bionic
+Release=focal
Repositories=main,universe
-Mirror=http://no.archive.ubuntu.com
+Mirror=http://no.archive.ubuntu.com/ubuntu
[Output]
Format=directory
-Output=/var/lib/machines/sonarr
+Output=/var/lib/machines/radarr
[Packages]
WithNetwork=yes
Packages=
unattended-upgrades
gnupg
+ ca-certificates
+ curl
+ mediainfo
+ apt-transport-https
+
diff --git a/mkosi.extra/etc/systemd/system/radarr.service b/mkosi.extra/etc/systemd/system/radarr.service
index 86b461b..892a829 100644
--- a/mkosi.extra/etc/systemd/system/radarr.service
+++ b/mkosi.extra/etc/systemd/system/radarr.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Sonarr Daemon
+Description=Radarr Daemon
After=network.target
[Service]
@@ -8,7 +8,7 @@ Group=warez
Umask=022
Type=simple
-ExecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/config
+ExecStart=/usr/bin/mono /opt/Radarr/Radarr.exe -nobrowser -data=/config
TimeoutStopSec=20
KillMode=process
Restart=on-failure
diff --git a/mkosi.nspawn b/mkosi.nspawn
index 86677a2..2857eeb 100644
--- a/mkosi.nspawn
+++ b/mkosi.nspawn
@@ -1,5 +1,5 @@
[Exec]
-Hostname=sonarr
+Hostname=radarr
ResolvConf=copy-host
Timezone=copy
PrivateUsers=false
@@ -7,10 +7,9 @@ NoNewPrivilegs=yes
[Files]
#PrivateUsersChown=yes
-BindReadOnly=
-Bind=/var/local/sonarr:/config
-Bind=/srv/cold/series:/tv
-Bind=/srv/cold/series:/srv/cold/series
+#BindReadOnly=
+Bind=/var/local/radarr:/config
+Bind=/srv/media/movies:/srv/movies
Bind=/srv/data/complete:/downloads
[Network]
diff --git a/mkosi.postinst b/mkosi.postinst
index 1211413..700b3c3 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -8,14 +8,14 @@ systemctl mask motd-news.service
systemctl mask motd-news.timer
# 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
+echo "deb http://no.archive.ubuntu.com/ubuntu $(lsb_release --short --codename)-security main universe" >> /etc/apt/sources.list
+echo "deb http://no.archive.ubuntu.com/ubuntu $(lsb_release --short --codename)-updates main universe" >> /etc/apt/sources.list
apt-get update && apt-get --yes full-upgrade && apt-get --yes autoremove
# 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
+echo "deb https://download.mono-project.com/repo/ubuntu stable-$(lsb_release --short --codename) main" | tee /etc/apt/sources.list.d/mono-official-stable.list
apt-get update