mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
ddd1abdb8a
commit
592060e057
@ -110,7 +110,7 @@ def subcommand_change_password(arguments):
|
|||||||
def subcommand_update(_):
|
def subcommand_update(_):
|
||||||
"""Run update.php maintenance script when version upgrades happen."""
|
"""Run update.php maintenance script when version upgrades happen."""
|
||||||
update_script = os.path.join(MAINTENANCE_SCRIPTS_DIR, 'update.php')
|
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):
|
def subcommand_public_registrations(arguments):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user