Exemple #1
0
def build_database():
    """Builds website database and adds admin."""
    if not os.path.exists('dhbox-docker.db'):
        dhbox.db.create_all()
        dhbox.create_user_and_role()
    else:
        print "Database exists."
Exemple #2
0
def build_database():
    """Builds website database and adds admin."""
    if not os.path.exists('dhbox-docker.db'):
        dhbox.db.create_all()
        dhbox.create_user_and_role()
    else:
        print "Database exists."
Exemple #3
0
def replace_admin_dhbox_image():
    """Updates admin's DH Box to the new seed image."""
    kill_and_remove_user('admin', user=False)
    dhbox.create_user_and_role()