How alperen-cpu/shell-welcome-message works
This small repository provides CentOS and Debian login-message scripts. The documented workflow installs and configures msmtp, then arranges for a script to run during login or MOTD generation so login information can be emailed. The README explicitly connects CentOS’s /etc/profile command to centos.sh; it describes enabling Debian’s MOTD hook but does not explicitly show that hook invoking debian.sh. Script internals were not available, so no finer processing stages are inferred.
Main entry points: centos.sh CentOS message · debian.sh Debian message
Components 7
Login scripts
- CentOS message
centos.sh - Debian message
debian.sh
Other components
- Login session
- /etc/profile
- Debian MOTD hook
- msmtp
- Email recipient
Connections 5
- Login session → /etc/profile: starts
- /etc/profile → CentOS message: runs
README.md - CentOS message → msmtp: sends login info
- Debian message → msmtp: sends login info
- msmtp → Email recipient: emails