Don't try to create an admin user if one already exists.

Review Request #8618 — Created Jan. 15, 2017 and submitted

Information

Review Board
release-3.0.x
10cd228...

Reviewers

When setting up a site, it's possible that there will be existing data in the
database (for example, when migrating a server, or when an initial installation
attempt was cancelled). In this case, creating a superuser would fail due to a
duplicate username. This change makes it so we check first to verify if data
exists.

Created a test site.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/cmdline/rbsite.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/cmdline/rbsite.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.5.x (cf46190)