Portability: use uname -n instead of hostname.

`hostname` is not available by default on some modern Linux distributions
(eg. Arch Linux), whereas `uname -n` is defined by POSIX, so guaranteed.
This commit is contained in:
Geert Hendrickx
2025-01-10 12:39:30 +01:00
parent f981c782bb
commit b826123d98

View File

@@ -6813,7 +6813,7 @@ _send_notify() {
_nsource="$NOTIFY_SOURCE"
if [ -z "$_nsource" ]; then
_nsource="$(hostname)"
_nsource="$(uname -n)"
fi
_nsubject="$_nsubject by $_nsource"