motd script

This commit is contained in:
2021-10-20 13:30:04 -04:00
parent e601d327e2
commit 62187c5e69

View File

@@ -11,7 +11,7 @@ profiledir="/etc/profile.d/"
[[ ! -d "$profiledir" ]] && mkdir -p "$profiledir"
cat <<- EOF > "$profiledir/motd"
cat <<- EOF > "$profiledir/motd.sh"
#!/usr/bin/env bash
USER=$(whoami)
@@ -55,5 +55,6 @@ echo "
"
EOF
chmod +x "$profiledir/motd.sh"
exit $?