From 2beb02b496ba4b653a0d7184dd79f094615be3e1 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 9 Jan 2025 23:06:26 -0800 Subject: [PATCH] wordpress: Order daemon enable/disable correctly Tests: - Enabling/disabling app results in daemons enabling/disabling in correct order. MySQL first and timer next when enabling. Reverse when disabling. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/wordpress/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plinth/modules/wordpress/__init__.py b/plinth/modules/wordpress/__init__.py index c416abc70..481187e53 100644 --- a/plinth/modules/wordpress/__init__.py +++ b/plinth/modules/wordpress/__init__.py @@ -103,11 +103,11 @@ class WordPressApp(app_module.App): urls=['https://{host}/wordpress/']) self.add(webserver) - daemon = Daemon('daemon-wordpress', 'wordpress-freedombox.timer') - self.add(daemon) + daemon1 = SharedDaemon('shared-daemon-wordpress-mysql', 'mysql') + self.add(daemon1) - daemon = SharedDaemon('shared-daemon-wordpress-mysql', 'mysql') - self.add(daemon) + daemon2 = Daemon('daemon-wordpress', 'wordpress-freedombox.timer') + self.add(daemon2) backup_restore = WordPressBackupRestore('backup-restore-wordpress', **manifest.backup)