Made motd msg work in Centos,
updated motd display to first check if file exists
This commit is contained in:
@@ -700,4 +700,4 @@ systemctl reload sshd fail2ban
|
||||
##-------##
|
||||
|
||||
msg " Done installing!"
|
||||
for f in /etc/update-motd.d/51*; do bash $f; done
|
||||
if stat --printf='' /etc/update-motd.d/51* 2>/dev/null; then for f in /etc/update-motd.d/51*; do bash $f; done; fi
|
||||
Reference in New Issue
Block a user