fix(unit): Default unit command to NOP
This commit is contained in:
parent
3d7bda9f6b
commit
b778fe6f41
@ -144,14 +144,12 @@ func Apply(cfg CloudConfig, env *Environment) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if unit.Group() != "network" {
|
if unit.Group() == "network" {
|
||||||
command := unit.Command
|
|
||||||
if command == "" {
|
|
||||||
command = "restart"
|
|
||||||
}
|
|
||||||
commands[unit.Name] = command
|
|
||||||
} else {
|
|
||||||
commands["systemd-networkd.service"] = "restart"
|
commands["systemd-networkd.service"] = "restart"
|
||||||
|
} else {
|
||||||
|
if unit.Command != "" {
|
||||||
|
commands[unit.Name] = unit.Command
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user