File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,18 @@ def initialize_db(credentials):
7979 print ("[LOG] Could not create tables. Either database does not exist or tables already created" )
8080 if populate_data :
8181 credentials = credentials .split (":" )
82- create_super_admin (credentials [0 ], credentials [1 ])
82+ admin_email = os .environ .get ('SUPER_ADMIN_EMAIL' , credentials [0 ])
83+ admin_password = os .environ .get ('SUPER_ADMIN_PASSWORD' , credentials [1 ])
84+ create_super_admin (admin_email , admin_password )
8385 populate ()
8486 else :
8587 print ("[LOG] Tables already exist. Skipping data population & creation." )
8688
8789
8890@manager .command
89- def prepare_kubernetes_db ():
91+ def prepare_kubernetes_db (
credentials = '[email protected] :fossasia' ):
9092 with app .app_context ():
91- initialize_db (
'[email protected] :fossasia' )
93+ initialize_db (credentials )
9294
9395
9496if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments