Browse Source

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.
pull/6194/head
Geert Hendrickx 3 weeks ago
parent
commit
b826123d98
No known key found for this signature in database GPG Key ID: CD718C1F95AD44EA
  1. 2
      acme.sh

2
acme.sh

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

Loading…
Cancel
Save