Skip to content
Permalink
Browse files

Purge MOTD correctly

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 27, 2019
1 parent 9b2275d commit 7cea9b0cb28a3c95d07843df98585de1e477f7ac
Showing with 4 additions and 2 deletions.
  1. +4 −2 build/999-cleanup
@@ -2,10 +2,12 @@
# Clean up any cruft left behind

# Remove any MOTD items included with the base distro
if [[ -e /etc/update-motd.d/* ]]; then
if [ -n "$(ls -A /etc/update-motd.d/ 2>/dev/null)" ]
then
rm /etc/update-motd.d/*
fi
if [[ -e /etc/motd.d/* ]]; then
if [ -n "$(ls -A /etc/motd.d/ 2>/dev/null)" ]
then
rm /etc/motd.d/*
fi

0 comments on commit 7cea9b0

Please sign in to comment.
You can’t perform that action at this time.