mediawiki: Fix app installation process doesn't display status information

During 'setup' and 'update' post installation calls, the mediawiki
app page doesn't show any status information. Use the call name 'post'
instead so that the 'Performing post-install operation' message is displayed on the app page.

Fixes #2024

Tested that all the mediawiki app tests pass on first app installation.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Fioddor Superconcentrado <fioddor@gmail.com>
This commit is contained in:
Veiko Aasa 2021-02-02 10:30:01 +02:00 committed by Fioddor Superconcentrado
parent 1f04720c7a
commit b3d4250df2
No known key found for this signature in database
GPG Key ID: 6E98A18FEBF77724

View File

@ -106,8 +106,8 @@ class Shortcut(frontpage.Shortcut):
def setup(helper, old_version=None):
"""Install and configure the module."""
helper.install(managed_packages)
helper.call('setup', actions.superuser_run, 'mediawiki', ['setup'])
helper.call('update', actions.superuser_run, 'mediawiki', ['update'])
helper.call('post', actions.superuser_run, 'mediawiki', ['setup'])
helper.call('post', actions.superuser_run, 'mediawiki', ['update'])
helper.call('post', app.enable)