mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
02e409a3a1
commit
2fc354ea7f
@ -6,7 +6,7 @@ from django.utils.translation import gettext_lazy as _
|
|||||||
from plinth import app as app_module
|
from plinth import app as app_module
|
||||||
from plinth import cfg, frontpage, menu
|
from plinth import cfg, frontpage, menu
|
||||||
from plinth.config import DropinConfigs
|
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.apache.components import Webserver
|
||||||
from plinth.modules.backups.components import BackupRestore
|
from plinth.modules.backups.components import BackupRestore
|
||||||
from plinth.modules.firewall.components import Firewall
|
from plinth.modules.firewall.components import Firewall
|
||||||
@ -106,6 +106,9 @@ class WordPressApp(app_module.App):
|
|||||||
daemon = Daemon('daemon-wordpress', 'wordpress-freedombox.timer')
|
daemon = Daemon('daemon-wordpress', 'wordpress-freedombox.timer')
|
||||||
self.add(daemon)
|
self.add(daemon)
|
||||||
|
|
||||||
|
daemon = SharedDaemon('shared-daemon-wordpress-mysql', 'mysql')
|
||||||
|
self.add(daemon)
|
||||||
|
|
||||||
backup_restore = WordPressBackupRestore('backup-restore-wordpress',
|
backup_restore = WordPressBackupRestore('backup-restore-wordpress',
|
||||||
**manifest.backup)
|
**manifest.backup)
|
||||||
self.add(backup_restore)
|
self.add(backup_restore)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user