aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2020-04-30 12:03:39 +0200
committerDennis Eriksen <d@ennis.no>2020-04-30 12:03:39 +0200
commitf1dcc0f0640faeea3db35306c5be0156674edd06 (patch)
tree11dae0079de3eb84f9c07420bfeed89d120b536e /mkosi.postinst
parentexchanging apt with apt-get for better script-compatability (diff)
downloadmkosi-vaultwarden-f1dcc0f0640faeea3db35306c5be0156674edd06.tar.gz
upgrading to Focal
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-xmkosi.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkosi.postinst b/mkosi.postinst
index fcc4b2e..f2624e1 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -9,7 +9,7 @@ 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}')
+RELEASE=$(grep DISTRIB_CODENAME /etc/lsb-release | awk -F'=' '{print $2}')
echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-security main universe" >> /etc/apt/sources.list
echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-updates main universe" >> /etc/apt/sources.list
apt-get update && apt-get --yes full-upgrade && apt-get --yes autoremove