On 12/06/14 14:30, Pat Riehecky wrote:
On 06/12/2014 08:28 AM, Trevor Hemsley wrote:
On 12/06/14 14:11, Karanbir Singh wrote:
On 06/12/2014 01:16 PM, Ljubomir Ljubojevic wrote:
On 06/12/2014 12:38 PM, Karanbir Singh wrote:
hi,
I'd really like to have something where a user, on login to the vm or machine instance is told 'you have XX pending updates'. the data can come from a yum-plugin writing something somewhere ( so its not a case of running yum on each login ).
Who wants to take a stab at writing something for this ?
- KB
For CentOS 6 there are gpk-update-viewer and gpk-update-icon commands.
gpk-update-icon is for noticication there is something to update (orange 8-point star), that command can be added to Startup Applications, and gpk-update-viewer is what you get when you click on the star.
have you had something else on the mind? Or for CentOS 7 perhaps?
mostly looking to target VM's and cloudinstances that have barely enough to get yum and openssh-server running, so a yum plugin with an output that sends to motd work work best
But that needs thought about how to not overwrite user customised motd files. Ubuntu (yeah, I know) have a /etc/update-motd.d directory which writes the motd from the component scripts in that directory but a 5 minute search didn't make it easay for me to find out how it gets invoked.
T _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
I used to admin a few of those, so I know where to look:
https://wiki.ubuntu.com/UpdateNotifier http://packages.ubuntu.com/search?keywords=update-notifier
Pat
I checked further and older ubuntu releases used to use update-motd but they've now modified pam_motd to invoke the scripts in /etc/update-motd.d on login instead. I checked my RHEL7rc VM and those modifications are not present there.
T