From 2096e36845ab98234ce29cdd8450b02d63ce4658 Mon Sep 17 00:00:00 2001 From: LinuxSquare <7436714-OfficialLinuxSquare@users.noreply.gitlab.com> Date: Fri, 29 Sep 2023 20:50:04 +0200 Subject: [PATCH] fix motd --- system/base.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/base.sls b/system/base.sls index ba335d7..edbaa98 100644 --- a/system/base.sls +++ b/system/base.sls @@ -32,8 +32,8 @@ 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 | sed \'s~"~~g\'') }} - OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2 | sed \'s~"~~g\'') }} + OS_NAME: {{ salt['cmd.shell']('grep -E ^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 - mode: '0644' \ No newline at end of file