setup: Enable essential apps that use firewall

Tests in testing container:
- SSH, Service Discovery, and Web Server are shown as enabled on
Firewall page.
- FreedomBox interface can be accessed after disabling Cockpit.

Closes: #2016.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2021-01-22 19:33:45 -05:00 committed by Sunil Mohan Adapa
parent 566fef18b2
commit a8b5a32ff4
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
3 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,7 @@ def setup(helper, old_version=None):
actions.superuser_run(
'apache',
['setup', '--old-version', str(old_version)])
helper.call('post', app.enable)
# (U)ser (W)eb (S)ites

View File

@ -98,6 +98,7 @@ def setup(helper, old_version=None):
# available and require restart.
helper.call('post', actions.superuser_run, 'service',
['reload', 'avahi-daemon'])
helper.call('post', app.enable)
def on_post_hostname_change(sender, old_hostname, new_hostname, **kwargs):

View File

@ -68,6 +68,7 @@ class SSHApp(app_module.App):
def setup(helper, old_version=None):
"""Configure the module."""
actions.superuser_run('ssh', ['setup'])
helper.call('post', app.enable)
def get_host_keys():