From 57010260bd695a7afce5b4be829d22ac34f46d92 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:29 -0400 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} )\""