mediawiki: Pass --quick when running update.php

By default update.php will pause for 5 seconds before doing anything
to remind the user to make a backup before the script runs. Since we're
running it in a separate process where the user won't get that opportunity
anyways, skip the 5 second delay by passing `--quick`.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Kunal Mehta authored and Sunil Mohan Adapa committed 2019-12-29 18:09:20 -08:00
1 parent ddd1abdb8a
commit 592060e057
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ def subcommand_change_password(arguments):
def subcommand_update(_):
"""Run update.php maintenance script when version upgrades happen."""
update_script = os.path.join(MAINTENANCE_SCRIPTS_DIR, 'update.php')
subprocess.check_call(['php', update_script])
subprocess.check_call(['php', update_script, '--quick'])
def subcommand_public_registrations(arguments):