motd: set motd to be displayed once

This commit is contained in:
DerLinkman
2026-05-12 19:45:00 +02:00
parent 0249f34ddf
commit f8a5505047
+4 -1
View File
@@ -3,7 +3,10 @@
content: |
#!/bin/bash
# Managed by Ansible - Do not edit manually
fastfetch -s os:kernel:uptime:packages:shell:disk:cpu:memory:localip:colors
if [[ -z "${FASTFETCH_MOTD_SHOWN:-}" && -z "${SUDO_USER:-}" ]]; then
fastfetch -s os:kernel:uptime:packages:shell:disk:cpu:memory:localip:colors
export FASTFETCH_MOTD_SHOWN=1
fi
dest: /etc/profile.d/motd.sh
owner: root
group: root