mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
*: Drop use of managed_services, rely on Daemon component
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
ba4b58de78
commit
781d8fa18b
39 files changed
+123
-161
No files matched your search
@@ -9,7 +9,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
from plinth import actions
|
||||
from plinth import app as app_module
|
||||
from plinth import cfg
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.daemon import Daemon, RelatedDaemon
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
from plinth.modules.letsencrypt.components import LetsEncrypt
|
||||
from plinth.package import Packages
|
||||
@@ -19,8 +19,6 @@ version = 9
|
||||
|
||||
is_essential = True
|
||||
|
||||
managed_services = ['apache2', 'uwsgi']
|
||||
|
||||
app = None
|
||||
|
||||
|
||||
@@ -55,10 +53,13 @@ class ApacheApp(app_module.App):
|
||||
self.add(freedombox_ports)
|
||||
|
||||
letsencrypt = LetsEncrypt('letsencrypt-apache', domains='*',
|
||||
daemons=[managed_services[0]])
|
||||
daemons=['apache2'])
|
||||
self.add(letsencrypt)
|
||||
|
||||
daemon = Daemon('daemon-apache', managed_services[0])
|
||||
daemon = Daemon('daemon-apache', 'apache2')
|
||||
self.add(daemon)
|
||||
|
||||
daemon = RelatedDaemon('related-daemon-apache', 'uwsgi')
|
||||
self.add(daemon)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user