fix(update): locksmith service does not need disabling/enabling
This commit is contained in:
parent
1a295f65c7
commit
60ab4222de
@ -136,13 +136,11 @@ func (uc UpdateConfig) Unit(root string) (*system.Unit, error) {
|
|||||||
|
|
||||||
u := &system.Unit{
|
u := &system.Unit{
|
||||||
Name: locksmithUnit,
|
Name: locksmithUnit,
|
||||||
Enable: true,
|
|
||||||
Command: "restart",
|
Command: "restart",
|
||||||
Mask: false,
|
Mask: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
if strategy == "off" {
|
if strategy == "off" {
|
||||||
u.Enable = false
|
|
||||||
u.Command = "stop"
|
u.Command = "stop"
|
||||||
u.Mask = true
|
u.Mask = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user