Skip to content

Commit

Permalink
hostname or hostnamectl
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Dec 10, 2024
1 parent f49e6d6 commit 1d59f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic.global.env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -Eumo pipefail
cat << EOF
ARCHITECTURE=$(uname -m)
GROUP_ID=$(id -g)
HOST_NAME=$(hostname)
HOST_NAME=$(hostname 2>/dev/null || hostnamectl hostname)
USER_ID=$(id -u)
TZ=$(timedatectl | awk '/Time zone:/ {print $3}')
EOF

0 comments on commit 1d59f08

Please sign in to comment.