]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
util: dovecot-sysreport: Use "uname -n" instead of "hostname" for portability
authorGeert Hendrickx <geert@hendrickx.be>
Fri, 9 Oct 2020 19:07:40 +0000 (21:07 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 15 Jan 2021 12:25:43 +0000 (12:25 +0000)
hostname is not defined by POSIX, so not guaranteed to work.

src/util/dovecot-sysreport

index 5384fe926c2af6bf7b610edeed2b1708228b51b7..02068d0b4a9af14c55e02aa657783cf639ec7679 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -eu
 
-dest="dovecot-sysreport-$(hostname)-$(date +'%s').tar.gz"
+dest="dovecot-sysreport-$(uname -n)-$(date +'%s').tar.gz"
 conf_flag=""
 binary=""
 core=""