diff options
-rw-r--r-- | mkosi.default | 1 | ||||
-rwxr-xr-x | mkosi.postinst | 7 |
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 |