From b4b93b36f1d0f4a082210a4f18a188e4fd820952 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 21 Feb 2021 12:52:55 +0000 Subject: [PATCH] add server date and other details improvements --- lgsm/functions/alert.sh | 2 ++ lgsm/functions/info_distro.sh | 3 +++ lgsm/functions/info_messages.sh | 24 +++++++++--------------- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/lgsm/functions/alert.sh b/lgsm/functions/alert.sh index 916f80e67..5fd999728 100755 --- a/lgsm/functions/alert.sh +++ b/lgsm/functions/alert.sh @@ -7,6 +7,8 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" +# Generates alert log of the details at the time of the alert. +# Used with email alerts. fn_alert_log(){ info_distro.sh info_config.sh diff --git a/lgsm/functions/info_distro.sh b/lgsm/functions/info_distro.sh index 3b199b4f0..716247664 100755 --- a/lgsm/functions/info_distro.sh +++ b/lgsm/functions/info_distro.sh @@ -81,6 +81,9 @@ else fi fi +## Date +date="$(date)" + ## Uptime uptime=$(