From 45478a247f985d151ec97285d02c4a405307f0f4 Mon Sep 17 00:00:00 2001 From: LinuxSquare <7436714-OfficialLinuxSquare@users.noreply.gitlab.com> Date: Fri, 29 Sep 2023 21:20:47 +0200 Subject: [PATCH] Switch NAME to PRETTY_NAME --- system/base.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/base.sls b/system/base.sls index 29bd1d0..ec5a92e 100644 --- a/system/base.sls +++ b/system/base.sls @@ -43,7 +43,7 @@ system_base_motd: - source: salt://{{ tpldir }}/files/base_motd.jinja - template: jinja - context: - OS_NAME: {{ salt['cmd.shell']('grep -E ^NAME /etc/os-release | cut -d= -f2') }} + OS_NAME: {{ salt['cmd.shell']('grep -E ^PRETTY_NAME /etc/os-release | cut -d= -f2') }} OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2') }} - user: root - group: root