summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordennis <dennis@mrslave>2020-01-07 16:17:46 +0100
committerdennis <dennis@mrslave>2020-01-07 16:17:46 +0100
commit75d6c4a55daf84f27d62ea074c1acf5ca78eaf9b (patch)
tree08bc0b800e8ff2ba4bf16cc06ff2d67b5e381a90
parentmoving from skeleton to extra (diff)
downloadmkosi-sonarr-75d6c4a55daf84f27d62ea074c1acf5ca78eaf9b.tar.gz
installing sonarr and libcurl
-rw-r--r--mkosi.default1
-rwxr-xr-xmkosi.postinst7
2 files changed, 8 insertions, 0 deletions
diff --git a/mkosi.default b/mkosi.default
index b507672..aacee0b 100644
--- a/mkosi.default
+++ b/mkosi.default
@@ -13,3 +13,4 @@ WithNetwork=yes
Packages=
unattended-upgrades
gnupg
+ libcurl4
diff --git a/mkosi.postinst b/mkosi.postinst
index 1ed3057..d04f129 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -8,6 +8,13 @@ chmod 644 /etc/update-motd.d/*
systemctl mask motd-news.service
systemctl mask motd-news.timer
+# Add update- and security-repositories, and perform upgrade
+RELEASE=$(cat /etc/lsb-release | grep DISTRIB_CODENAME | awk -F'=' '{print $2}')
+echo "deb http://no.archive.ubuntu.com ${RELEASE}-security main universe" >> /etc/apt/sources.list
+echo "deb http://no.archive.ubuntu.com ${RELEASE}-updates main universe" >> /etc/apt/sources.list
+apt update && apt --yes full-upgrade && apt --yes autoremove
+
+# 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