Merge pull request #17781 from hashicorp/jbardin/habitat
`enable` habitat supervisor service before `start`
This commit is contained in:
commit
f8b691f743
|
@ -588,9 +588,9 @@ func (p *provisioner) startHabSystemd(o terraform.UIOutput, comm communicator.Co
|
||||||
}
|
}
|
||||||
|
|
||||||
if p.UseSudo {
|
if p.UseSudo {
|
||||||
command = fmt.Sprintf("sudo systemctl start %s", p.ServiceName)
|
command = fmt.Sprintf("sudo systemctl enable hab-supervisor && sudo systemctl start hab-supervisor")
|
||||||
} else {
|
} else {
|
||||||
command = fmt.Sprintf("systemctl start %s", p.ServiceName)
|
command = fmt.Sprintf("systemctl enable hab-supervisor && systemctl start hab-supervisor")
|
||||||
}
|
}
|
||||||
return p.runCommand(o, comm, command)
|
return p.runCommand(o, comm, command)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue