mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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 <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
da90ba721e
commit
2beb02b496
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user