Skip to content

Commit

Permalink
don't run bootstrapping if org exists
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 bafdb01 commit 77d10d9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/bootstrap-post/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ func main() {
conf.Tyk.Org.Name,
conf.Tyk.Org.Cname,
)
}
} else {
log.Info("Bootstrapping Tyk Dashboard")

log.Info("Bootstrapping Tyk Dashboard")
if err = tykSvc.CreateOrganisation(); err != nil {
exit(log, err)
}

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

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

Expand Down

0 comments on commit 77d10d9

Please sign in to comment.