Skip to content
Snippets Groups Projects
Unverified Commit e6e6e2c5 authored by Zexi Li's avatar Zexi Li Committed by GitHub
Browse files

fix(host): openvswitch service name on UOS (#14392)

parent 856bff47
No related branches found
No related tags found
No related merge requests found
......@@ -695,7 +695,10 @@ func (h *SHostInfo) detectOsDist() {
}
}
if utils.IsInStringArray(strings.ToLower(h.sysinfo.OsDistribution), []string{"uos", "debian", "ubuntu"}) {
system_service.SetOpenvswitchName("openvswitch-switch")
if err := procutils.NewRemoteCommandAsFarAsPossible("systemctl", "cat", "--", "openvswitch").Run(); err != nil {
log.Warningf("system_service.SetOpenvswitchName to openvswitch-switch")
system_service.SetOpenvswitchName("openvswitch-switch")
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment