mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
fix(restore/swarm): init primary endpoint after admin user is created (#8854)
This commit is contained in:
parent
1963d064a3
commit
19eceaf37f
7 changed files with 222 additions and 152 deletions
|
@ -76,5 +76,8 @@ func (handler *Handler) adminInit(w http.ResponseWriter, r *http.Request) *httpe
|
|||
return httperror.InternalServerError("Unable to persist user inside the database", err)
|
||||
}
|
||||
|
||||
// After the admin user is created, we can notify the endpoint initialization process
|
||||
handler.AdminCreationDone <- struct{}{}
|
||||
|
||||
return response.JSON(w, user)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue