motd: set motd to be displayed once
This commit is contained in:
@@ -3,7 +3,10 @@
|
|||||||
content: |
|
content: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Managed by Ansible - Do not edit manually
|
# 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
|
dest: /etc/profile.d/motd.sh
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|||||||
Reference in New Issue
Block a user