mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
nextcloud: Ensure that database is running when running setup
- Database will be running if mysql has just been installed. - However, after disabling all apps, it is no longer running. After this trying to install/reinstall nextcloud fails. Fix this by ensuring that mysql is always running during setup. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
52c4783c4a
commit
da3f498609
@ -114,7 +114,12 @@ class NextcloudApp(app_module.App):
|
||||
def setup(self, old_version):
|
||||
"""Install and configure the app."""
|
||||
super().setup(old_version)
|
||||
privileged.setup()
|
||||
with self.get_component(
|
||||
'shared-daemon-nextcloud-mysql').ensure_running():
|
||||
# Database needs to be running for successful initialization or
|
||||
# upgrade of Nextcloud database.
|
||||
privileged.setup()
|
||||
|
||||
if not old_version:
|
||||
self.enable()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user