1
0
Fork 0
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:
Oscar Zhou 2023-05-04 09:44:11 +12:00 committed by GitHub
parent 1963d064a3
commit 19eceaf37f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 222 additions and 152 deletions

View file

@ -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)
}