Start container when it's updated

This commit is contained in:
Adam Štrauch 2020-08-17 01:17:20 +02:00
parent c714274a98
commit 865a9a187e
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -166,6 +166,11 @@ func main() {
return c.JSONPretty(http.StatusInternalServerError, Message{Message: err.Error()}, JSONIndent)
}
err = container.Start()
if err != nil {
return c.JSONPretty(http.StatusInternalServerError, Message{Message: err.Error()}, JSONIndent)
}
return c.JSON(http.StatusOK, Message{Message: "ok"})
})