To update the message of the day in Linux you can modify the file:
This is for adding a static entry in the message of the day. In order to add a dynamic entry which updates for a given scenario, add a script in /etc/update-motd.d.
The priority of the files located in /etc/motd.tail is based on the numbering of the scripts. Example: 00-Header comes before 99-footer.