Index: trunk/wikiation/installer/mediawiki_installer.py |
— | — | @@ -219,8 +219,11 @@ |
220 | 220 | do_sql(target, target_file) |
221 | 221 | |
222 | 222 | 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) |
225 | 228 | |
226 | 229 | def do_sql(target, infile): |
227 | 230 | """execute an sql file, using mysql""" |