mirror of https://github.com/kubernetes/kops.git
Check systemd path
Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
This commit is contained in:
parent
e946e64304
commit
5e9bec9b79
|
@ -43,6 +43,8 @@ const (
|
|||
|
||||
coreosSystemdSystemPath = "/etc/systemd/system"
|
||||
|
||||
flatcarSystemdSystemPath = "/etc/systemd/system"
|
||||
|
||||
containerosSystemdSystemPath = "/etc/systemd/system"
|
||||
)
|
||||
|
||||
|
@ -150,6 +152,8 @@ func (e *Service) systemdSystemPath(target tags.HasTags) (string, error) {
|
|||
return centosSystemdSystemPath, nil
|
||||
} else if target.HasTag("_coreos") {
|
||||
return coreosSystemdSystemPath, nil
|
||||
} else if target.HasTag("_flatcar") {
|
||||
return flatcarSystemdSystemPath, nil
|
||||
} else if target.HasTag("_containeros") {
|
||||
return containerosSystemdSystemPath, nil
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue