owncloud: Perform setup synchronously

Earlier, installation of the ownCloud package was performed as part of
setup process.  It took time and hence the action was done
asynchronously.  Now, however, package manager takes care of this.  To
avoid any potential race conditions with the user accessing ownCloud
before it is setup, perform the setup synchronously.
This commit is contained in:
Sunil Mohan Adapa 2015-09-27 22:53:41 +05:30
parent 0e111d833c
commit 4a9d877724

View File

@ -54,7 +54,7 @@ def init():
def on_install():
"""Tasks to run after package install."""
actions.superuser_run('owncloud-setup', ['enable'], async=True)
actions.superuser_run('owncloud-setup', ['enable'])
service.notify_enabled(None, True)
@ -100,7 +100,7 @@ def _apply_changes(request, old_status, new_status):
messages.success(request, _('ownCloud disabled'))
option = 'noenable'
actions.superuser_run('owncloud-setup', [option], async=True)
actions.superuser_run('owncloud-setup', [option])
# Send a signal to other modules that the service is
# enabled/disabled