更新IP的获取方式

原命令也是基于 路径正确、操作系统输出格式正确,还不如 hostname -i 来得简单。  
hostname -i 在正确配置的操作系统下,都能正常获取IP地址。  
简单高效,简单就是好。
master
higkoo 5 years ago committed by GitHub
parent 408b6494d8
commit 060c00fa25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,9 +14,9 @@ redis:
identity:
specify: ""
shell: /usr/sbin/ifconfig `/usr/sbin/route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|head -n 1
shell: hostname -i
logger:
dir: logs/judge
level: WARNING
keepHours: 2
keepHours: 2

Loading…
Cancel
Save