mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +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
|
||||
import plinth.app as app_module
|
||||
from plinth import frontpage, menu
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
from plinth.modules.users import register_group
|
||||
@ -37,6 +38,8 @@ icon_name = name
|
||||
|
||||
managed_packages = ['minidlna']
|
||||
|
||||
managed_services = ['minidlna']
|
||||
|
||||
short_description = _('Simple Media Server')
|
||||
|
||||
description = [
|
||||
@ -84,11 +87,13 @@ class MiniDLNAApp(app_module.App):
|
||||
url='/_minidlna/',
|
||||
login_required=True,
|
||||
)
|
||||
daemon = Daemon('daemon-minidlna', managed_services[0])
|
||||
|
||||
self.add(menu_item)
|
||||
self.add(webserver)
|
||||
self.add(firewall)
|
||||
self.add(shortcut)
|
||||
self.add(daemon)
|
||||
|
||||
|
||||
def init():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user