fix(update): locksmith service does not need disabling/enabling

This commit is contained in:
Jonathan Boulle 2014-05-24 00:38:29 -07:00
parent 1a295f65c7
commit 60ab4222de

View File

@ -136,13 +136,11 @@ func (uc UpdateConfig) Unit(root string) (*system.Unit, error) {
u := &system.Unit{
Name: locksmithUnit,
Enable: true,
Command: "restart",
Mask: false,
}
if strategy == "off" {
u.Enable = false
u.Command = "stop"
u.Mask = true
}