From 81f16df4f7b994f0015820f2bfe7d5b8c0691097 Mon Sep 17 00:00:00 2001 From: rubenb Date: Tue, 31 Oct 2023 12:52:12 +0100 Subject: [PATCH] update mymotd --- roles/config-base-debian-os/files/mymotd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/config-base-debian-os/files/mymotd.sh b/roles/config-base-debian-os/files/mymotd.sh index 7e083d1..fa8ca5e 100644 --- a/roles/config-base-debian-os/files/mymotd.sh +++ b/roles/config-base-debian-os/files/mymotd.sh @@ -7,7 +7,7 @@ LAST_LOGIN_USER=$(lastlog | tail -n 1 | awk '{print $1}') LAST_LOGIN_TIME_HOUR=$(lastlog | tail -n 1 | awk '{print $4" "$5" "$6" "$7}') LAST_LOGIN_IP_FROM_USER=$(lastlog | tail -n 1 | awk '{print $3}') UPTIME_SYSTEM=$(uptime -p | tr -d ',') -NUMBER_USERS_CONNECTED=$(uptime | awk '{print $4" "$5}' | tr -d ",") +NUMBER_USERS_CONNECTED=$(uptime | awk '{print $5" "$6}' | tr -d ",") LIST_USERS_CONNECTED=$(w | tail -n +2) KERNEL=$(uname -r) PACKAGES=$(dpkg -l | tail -n +6 | wc -l)