`enable` habitat supervisor service before `start`

Signed-off-by: Arash Zandi <arash.zandi@smartb.eu>
This commit is contained in:
Marko Springfeldt 2018-01-29 16:27:10 +01:00 committed by James Bardin
parent 16d0e1225c
commit a201b04b26
1 changed files with 2 additions and 2 deletions

View File

@ -587,9 +587,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)
}