This commit is contained in:
Andreas Schneider 2026-08-06 20:05:27 +05:30 • committed by GitHub
commit b05e069e7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -311,7 +311,10 @@ LOG_DIR="$(printf '%s' "${LOG_DIR}" | awk '{gsub(/\/+$/, ""); printf $1}')"
readonly LOG_DIR
# System information
readonly HOSTNAME="$(hostname)"
HOSTNAME="$(hostname)"
# Try command hostnamectl if HOSTNAME is unset or empty
[ -z "${HOSTNAME}" ] && HOSTNAME="$(hostnamectl --static)"
readonly HOSTNAME
readonly OS_FLAVOR="$(uname)"
# SMART static information