OutsideIT / FireMotD

:fire: Fire Framework Linux MoTD Generator :fire:
https://outsideit.net/firemotd
GNU General Public License v3.0
174 stars 45 forks source link

Show installation date #24

Closed willemdh closed 7 years ago

willemdh commented 7 years ago

Show installation date with command:

rpm -qi basesystem | grep "Install Date"

Works only for rpm based os though..

ThomDietrich commented 7 years ago

I was curious about the new "Age =", but it's blank on my system. Looking at the latest commit, that's no surprise... If you only retrieve the age for rpm systems, at least show the Age line conditional...!?

willemdh commented 7 years ago

That was the plan Thom, but my wife prepared dinner...

ThomDietrich commented 7 years ago

Hehe fair enough. I've been digging around a bit but couldn't find a nice solution. Most recommend using tune2fs to get the creation date of the root filesystem, that's however a command only available to root/sudo.

willemdh commented 7 years ago

@ThomDietrich Can you test again. Should be clean now.

image

ThomDietrich commented 7 years ago

Yes it's gone again. Thanks ;)

willemdh commented 7 years ago

There seems to be another small issue on CentOS 6 systems:

Installed = Fri 26 Sep 2014 04:28:14 PM CEST Build Host: c5b2.bsys.dev.centos.org

I'll need to sed some more.. On my to do

willemdh commented 7 years ago

Seems all issues with the install date (on CentOS) are fixed. I'm not gonna look into getting this feature for non-rpm systems as I'm not suing those. Closing! :)