Skip to content

Commit

Permalink
remove checking existence of org while bootstrapping portal
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
  • Loading branch information
buraksekili committed Nov 23, 2023
1 parent d347db1 commit db53420
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions cmd/bootstrap-post/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,12 @@ func main() {
if conf.BootstrapPortal {
log.Info("Bootstrapping Tyk Classic Portal")

orgExists, err = tykSvc.OrgExists()
if err != nil {
if err = tykSvc.BootstrapClassicPortal(); err != nil {
exit(log, err)
}

if !orgExists {
if err = tykSvc.BootstrapClassicPortal(); err != nil {
exit(log, err)
}

if err = k8sClient.RestartDashboard(); err != nil {
exit(log, err)
}
if err = k8sClient.RestartDashboard(); err != nil {
exit(log, err)
}
}

Expand Down

0 comments on commit db53420

Please sign in to comment.