mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 08:03:55 +08:00
fix: Add architectural judgment for node creation upgrade (#8502)
This commit is contained in:
@@ -121,6 +121,9 @@ func LoadArch() (string, error) {
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("std: %s, err: %s", std, err.Error())
|
||||
}
|
||||
return LoadArchWithStdout(std)
|
||||
}
|
||||
func LoadArchWithStdout(std string) (string, error) {
|
||||
if strings.Contains(std, "x86_64") {
|
||||
return "amd64", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user