Sync server state with Panel before performing installation to ensure information is up to date

This commit is contained in:
Dane Everitt
2020-06-30 20:56:55 -07:00
parent 79a582a5f2
commit ea2630946a
3 changed files with 14 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ func postServerInstall(c *gin.Context) {
s := GetServer(c.Param("server"))
go func(serv *server.Server) {
if err := serv.Install(); err != nil {
if err := serv.Install(true); err != nil {
serv.Log().WithField("error", err).Error("failed to execute server installation process")
}
}(s)

View File

@@ -59,7 +59,7 @@ func postCreateServer(c *gin.Context) {
go func(i *installer.Installer) {
i.Execute()
if err := i.Server().Install(); err != nil {
if err := i.Server().Install(false); err != nil {
log.WithFields(log.Fields{"server": i.Uuid(), "error": err}).Error("failed to run install process for server")
}
}(install)