#NEWLINE# def run_startup_checks( self , db_conn , database_engine ) : #NEWLINE# #INDENT# all_users_native = are_all_users_on_domain ( db_conn . cursor ( ) , database_engine , self . hostname ) #NEWLINE# if ( not all_users_native ) : #NEWLINE# #INDENT# quit_with_error ( ( "Found users in database not native to %s!\nYou cannot changed a synapse server_name after it's been configured" % ( self . hostname , ) ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# database_engine . check_database ( db_conn . cursor ( ) ) #NEWLINE# #UNINDENT# except IncorrectDatabaseSetup as e : #NEWLINE# #INDENT# quit_with_error ( e . message )