components: Introduce new component - Packages

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: isort all files]
[sunil: Remove component in datetime component as managed_packages is empty]
[sunil: Minor refactor in minidlna for consistency]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2021-11-08 16:03:42 -08:00
1 parent ff0dc01023
commit cd4bd17173
55 files changed
+272 -15

No files matched your search

+4
View File
@@ -12,6 +12,7 @@ from plinth.daemon import Daemon
from plinth.modules.apache.components import Webserver
from plinth.modules.backups.components import BackupRestore
from plinth.modules.firewall.components import Firewall
from plinth.package import Packages
from plinth.utils import format_lazy
from . import manifest
@@ -85,6 +86,9 @@ class WordPressApp(app_module.App):
url='/wordpress/', clients=info.clients)
self.add(shortcut)
packages = Packages('packages-wordpress', managed_packages)
self.add(packages)
firewall = Firewall('firewall-wordpress', info.name,
ports=['http', 'https'], is_external=True)
self.add(firewall)