From 19f54c9f5209bc4bec52cfbb350a84b9964ed40a Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Tue, 8 Nov 2022 10:02:22 +1300 Subject: [PATCH] Specifically use os-release --- templates/dynmotd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/dynmotd b/templates/dynmotd index 4691018..15dbf93 100644 --- a/templates/dynmotd +++ b/templates/dynmotd @@ -69,9 +69,9 @@ echo -e " {% else %} $COLOR_COLUMN- IP Address (Default)$RESET_COLORS: $COLOR_VALUE $IP $RESET_COLORS {% endif %} {% if ansible_distribution == "Alpine" %} - $COLOR_COLUMN- Release$RESET_COLORS.............: $COLOR_VALUE Alpine `/usr/bin/env cat {{ ansible_distribution_file_path }}` $RESET_COLORS + $COLOR_COLUMN- Release$RESET_COLORS.............: $COLOR_VALUE Alpine `/usr/bin/env cat /etc/os-release` $RESET_COLORS {% else %} - $COLOR_COLUMN- Release$RESET_COLORS.............: $COLOR_VALUE `/usr/bin/env cat {{ ansible_distribution_file_path }} | /usr/bin/env grep PRETTY_NAME | /usr/bin/env cut -d '"' -f 2` $RESET_COLORS + $COLOR_COLUMN- Release$RESET_COLORS.............: $COLOR_VALUE `/usr/bin/env cat /etc/os-release | /usr/bin/env grep PRETTY_NAME | /usr/bin/env cut -d '"' -f 2` $RESET_COLORS {% endif %} {% if ansible_distribution != "Alpine" %} $COLOR_COLUMN- Users$RESET_COLORS...............: $COLOR_VALUE Currently `users | wc -w` user(s) logged on $RESET_COLORS