mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
minidlna: Add managed service and Daemon component
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
b5fb23e448
commit
3bad37a749
@ -22,6 +22,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
from plinth import actions
|
from plinth import actions
|
||||||
import plinth.app as app_module
|
import plinth.app as app_module
|
||||||
from plinth import frontpage, menu
|
from plinth import frontpage, menu
|
||||||
|
from plinth.daemon import Daemon
|
||||||
from plinth.modules.apache.components import Webserver
|
from plinth.modules.apache.components import Webserver
|
||||||
from plinth.modules.firewall.components import Firewall
|
from plinth.modules.firewall.components import Firewall
|
||||||
from plinth.modules.users import register_group
|
from plinth.modules.users import register_group
|
||||||
@ -37,6 +38,8 @@ icon_name = name
|
|||||||
|
|
||||||
managed_packages = ['minidlna']
|
managed_packages = ['minidlna']
|
||||||
|
|
||||||
|
managed_services = ['minidlna']
|
||||||
|
|
||||||
short_description = _('Simple Media Server')
|
short_description = _('Simple Media Server')
|
||||||
|
|
||||||
description = [
|
description = [
|
||||||
@ -84,11 +87,13 @@ class MiniDLNAApp(app_module.App):
|
|||||||
url='/_minidlna/',
|
url='/_minidlna/',
|
||||||
login_required=True,
|
login_required=True,
|
||||||
)
|
)
|
||||||
|
daemon = Daemon('daemon-minidlna', managed_services[0])
|
||||||
|
|
||||||
self.add(menu_item)
|
self.add(menu_item)
|
||||||
self.add(webserver)
|
self.add(webserver)
|
||||||
self.add(firewall)
|
self.add(firewall)
|
||||||
self.add(shortcut)
|
self.add(shortcut)
|
||||||
|
self.add(daemon)
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user