Merge pull request #17781 from hashicorp/jbardin/habitat

`enable` habitat supervisor service before `start`
This commit is contained in:
James Bardin 2018-04-05 08:43:50 -04:00 committed by GitHub
commit f8b691f743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -588,9 +588,9 @@ func (p *provisioner) startHabSystemd(o terraform.UIOutput, comm communicator.Co
}
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 {
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)
}