mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
0e111d833c
commit
4a9d877724
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user