Check systemd path

Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
This commit is contained in:
Salvatore Mazzarino 2019-08-23 12:00:08 +02:00
parent e946e64304
commit 5e9bec9b79
1 changed files with 4 additions and 0 deletions

View File

@ -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 {