From 2c683418831cbffe0e0fe6206c6ebe625188e71d Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 17 Jan 2023 10:54:47 -0500 Subject: [PATCH] Use full debian_version --- roles/base/templates/usr/local/sbin/update-motd.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 index fc20285..f5ca055 100755 --- a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 +++ b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 @@ -12,7 +12,7 @@ TMPFILE=$(mktemp) TGTFILE=/run/pvc-motd.dynamic NAME="$( grep '^NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )" -VERSION_ID="$( grep '^VERSION_ID=' /etc/os-release | awk -F'"' '{ print $2 }' )" +VERSION_ID="$( cat /etc/debian_version )" VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )" DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\""