Set the docker image correctly when a server is updated; closes pterodactyl/panel#2356

This commit is contained in:
Dane Everitt
2020-09-17 20:20:39 -07:00
parent 815539b3da
commit 783832fc71
2 changed files with 7 additions and 0 deletions

View File

@@ -176,3 +176,9 @@ func (e *Environment) SetStopConfiguration(c *api.ProcessStopConfiguration) {
e.meta.Stop = c
e.mu.Unlock()
}
func (e *Environment) SetImage(i string) {
e.mu.Lock()
e.meta.Image = i
e.mu.Unlock()
}