mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
远程安装时使用uname取代/usr/bin/uname命令
This commit is contained in:
@@ -150,7 +150,8 @@ func (this *BaseInstaller) InstallHelper(targetDir string, role nodeconfigs.Node
|
||||
var unameRetries = 3
|
||||
var uname string
|
||||
for i := 0; i < unameRetries; i++ {
|
||||
uname, _, err = this.client.Exec("/usr/bin/uname -a")
|
||||
// 此处不能使用 /usr/bin/uname,因为uname不一定在 /usr/bin 下
|
||||
uname, _, err = this.client.Exec("uname -a")
|
||||
if len(uname) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user