From 83c3c1b9b3a998a46dba08ed3f07cd1a913a6a61 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Mon, 1 Jul 2024 15:42:04 +0200 Subject: [PATCH] add host_domain --- files/os/gmo-cfg.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/os/gmo-cfg.sh b/files/os/gmo-cfg.sh index aaa461e..38d343c 100644 --- a/files/os/gmo-cfg.sh +++ b/files/os/gmo-cfg.sh @@ -33,6 +33,7 @@ alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/env if ! is_scp; then if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then + host_domain=$(hostname -d) host_fqdn=$(hostname) host_short=$(hostname -s) ip=$(hostname -I) @@ -40,6 +41,7 @@ if ! is_scp; then kern=$(uname -r) cat << EOF --------------------------------------------------------- + Host domain: $host_domain Host name (fqdn): $host_fqdn Host name (short): $host_short Distribution: $dist