add date and hour

This commit is contained in:
Gilles Mouchet 2024-07-02 07:36:31 +02:00
parent b1e35f08ba
commit 4be52afb90

View File

@ -40,13 +40,15 @@ if ! is_scp; then
dist=$(cat /etc/redhat-release)
kern=$(uname -r)
cat << EOF
---------------------------------------------------------
Date - Hour: $(date +"%d.%m.%Y - %H:%M:%S")
---------------------------------------------------------
Host domain: $host_domain
Host name (fqdn): $host_fqdn
Host name (short): $host_short
Distribution: $dist
Kernel: $kern
----------------------------------------------------------
---------------------------------------------------------
EOF
fi
fi