summaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
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 /mkosi.postinst
parentmoving from skeleton to extra (diff)
downloadmkosi-sonarr-75d6c4a55daf84f27d62ea074c1acf5ca78eaf9b.tar.gz
installing sonarr and libcurl
Diffstat (limited to '')
-rwxr-xr-xmkosi.postinst7
1 files changed, 7 insertions, 0 deletions
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