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 2019-12-28 07:55:13 +00:00 committed by Sunil Mohan Adapa
parent ddd1abdb8a
commit 592060e057
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

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):