wordpress: Add shared daemon component for mariadb/mysql

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2024-02-13 16:32:07 -08:00 committed by James Valleroy
parent 02e409a3a1
commit 2fc354ea7f
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -6,7 +6,7 @@ from django.utils.translation import gettext_lazy as _
from plinth import app as app_module
from plinth import cfg, frontpage, menu
from plinth.config import DropinConfigs
from plinth.daemon import Daemon
from plinth.daemon import Daemon, SharedDaemon
from plinth.modules.apache.components import Webserver
from plinth.modules.backups.components import BackupRestore
from plinth.modules.firewall.components import Firewall
@ -106,6 +106,9 @@ class WordPressApp(app_module.App):
daemon = Daemon('daemon-wordpress', 'wordpress-freedombox.timer')
self.add(daemon)
daemon = SharedDaemon('shared-daemon-wordpress-mysql', 'mysql')
self.add(daemon)
backup_restore = WordPressBackupRestore('backup-restore-wordpress',
**manifest.backup)
self.add(backup_restore)