浏览代码

Merge pull request #6194 from ghen2/hostname

Portability: use `uname -n` instead of `hostname`.
neil 9 月之前
父节点
当前提交
6313020ba9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      acme.sh

+ 1 - 1
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"