From 75ba9bbae4c3bc6e1df3dd5978d6ebba09f70cc2 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 11 Apr 2023 02:17:03 +0200 Subject: [PATCH] sys_date_install sorted and add path /etc/machine-id --- etc/profile.d/sys.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index de1a6670..e7d633b3 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -63,10 +63,11 @@ sys_public_ip() { sys_date_install() { (date -r \ $( \ - ls -1drt \ + ls -1drt --sort=time \ /lost+found \ /etc/ssh/ssh_host_*_key.pub\ /etc/ssh_host_dsa_key.pub \ + /etc/machine-id \ |head -1 \ ) +'%F %T' \ ) 2>/dev/null -- 2.47.3