X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/mediawiki.git/blobdiff_plain/a4b52d2fe555a507c376e78ee624898c55968364..d7967d5e4460e08b6b258307afbca0596b18a3dd:/maintenance/update.php diff --git a/maintenance/update.php b/maintenance/update.php index 87dd4b15..2da51b22 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -1,35 +1,63 @@ isOpen() ) { + # Appears to have failed + echo( "A connection to the database could not be established. Check the\n" ); + echo( "values of \$wgDBadminuser and \$wgDBadminpassword.\n" ); + exit(); +} + +print "Going to run database updates for ".wfWikiID()."\n"; print "Depending on the size of your database this may take a while!\n"; if( !isset( $options['quick'] ) ) { print "Abort with control-c in the next five seconds... "; - - for ($i = 5; $i >= 0; --$i) { - echo $i; + + for ($i = 6; $i >= 1;) { + print_c($i, --$i); sleep(1); - echo( ($i == 0) ? "\n" : chr(8) ); } + echo "\n"; } -do_all_updates(); +$shared = isset( $options['doshared'] ); +$purge = !isset( $options['nopurge'] ); + +do_all_updates( $shared, $purge ); print "Done.\n"; -?> +