From 75d6c4a55daf84f27d62ea074c1acf5ca78eaf9b Mon Sep 17 00:00:00 2001 From: dennis Date: Tue, 7 Jan 2020 16:17:46 +0100 Subject: installing sonarr and libcurl --- mkosi.default | 1 + mkosi.postinst | 7 +++++++ 2 files changed, 8 insertions(+) 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 -- cgit v1.2.3