From b62ddf8032289b92fd8a0295a6afec3c5cbabc1c Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 20 Jan 2020 10:33:01 +0100 Subject: Initial commit --- mkosi.postinst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 mkosi.postinst (limited to 'mkosi.postinst') diff --git a/mkosi.postinst b/mkosi.postinst new file mode 100755 index 0000000..1c599bb --- /dev/null +++ b/mkosi.postinst @@ -0,0 +1,29 @@ +#!/bin/sh +set -ex +export DEBIAN_FRONTEND=noninteractive + +# motd +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 + +# locales +sed -i 's/# en_IE.UTF-8 UTF-8/en_IE.UTF-8 UTF-8/' /etc/locale.gen +locale-gen + +# install miniflux +curl -s https://apt.miniflux.app/KEY.gpg | apt-key add - +echo "deb https://apt.miniflux.app/ /" > /etc/apt/sources.list.d/miniflux.list +apt update + +apt install --yes miniflux + +mkdir /etc/miniflux +chown miniflux:miniflux /etc/miniflux +chmod 700 /etc/miniflux -- cgit v1.2.3