diff options
author | Dennis Eriksen <d@ennis.no> | 2020-04-30 12:49:02 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2020-04-30 12:49:02 +0200 |
commit | 52a465114728a35312518e7731462d09e373309e (patch) | |
tree | 7269c953fbea1e49bd8da84e57a7be0e0b0a5eac /mkosi.postinst | |
parent | exchanging apt with apt-get for better script-compatability (diff) | |
download | mkosi-filebin-52a465114728a35312518e7731462d09e373309e.tar.gz |
upgrading to Focal
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-x | mkosi.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkosi.postinst b/mkosi.postinst index 6484064..08f4a46 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -8,7 +8,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 |