r48562 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48561‎ | r48562 | r48563 >
Date:01:09, 19 March 2009
Author:kim
Status:deferred
Tags:
Comment:

changed account creation to use createAndPromote.php
Modified paths:
  • /trunk/wikiation/installer/mediawiki_installer.py (modified) (history)

Diff [purge]

Index: trunk/wikiation/installer/mediawiki_installer.py
@@ -219,8 +219,11 @@
220220 do_sql(target, target_file)
221221
222222 def make_admin(target):
223 - """use our usr.sql file to create an admin user"""
224 - do_sql(target, settings.installerdir+"/user.sql")
 223+ """create an admin user using createAndPromote.php"""
 224+ #do_sql(target, settings.installerdir+"/user.sql")
 225+ phpfile=os.path.join(settings.instancesdir,target,"maintenance","createAndPromote.php")
 226+ command="php "+phpfile+" --bureaucrat admin admin1234"
 227+ os.system(command)
225228
226229 def do_sql(target, infile):
227230 """execute an sql file, using mysql"""

Status & tagging log