mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
sysutils: use remote executor for hostnamectl as far as possible
So that hostnamectl can be omitted in host-base container image
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
)
|
||||
|
||||
func setHostname7(name string) error {
|
||||
return procutils.NewCommand("hostnamectl", "set-hostname", name).Run()
|
||||
return procutils.NewRemoteCommandAsFarAsPossible("hostnamectl", "set-hostname", name).Run()
|
||||
}
|
||||
|
||||
func setHostname6(name string) error {
|
||||
|
||||
Reference in New Issue
Block a user