mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
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:
parent
566fef18b2
commit
a8b5a32ff4
@ -66,6 +66,7 @@ def setup(helper, old_version=None):
|
|||||||
actions.superuser_run(
|
actions.superuser_run(
|
||||||
'apache',
|
'apache',
|
||||||
['setup', '--old-version', str(old_version)])
|
['setup', '--old-version', str(old_version)])
|
||||||
|
helper.call('post', app.enable)
|
||||||
|
|
||||||
|
|
||||||
# (U)ser (W)eb (S)ites
|
# (U)ser (W)eb (S)ites
|
||||||
|
|||||||
@ -98,6 +98,7 @@ def setup(helper, old_version=None):
|
|||||||
# available and require restart.
|
# available and require restart.
|
||||||
helper.call('post', actions.superuser_run, 'service',
|
helper.call('post', actions.superuser_run, 'service',
|
||||||
['reload', 'avahi-daemon'])
|
['reload', 'avahi-daemon'])
|
||||||
|
helper.call('post', app.enable)
|
||||||
|
|
||||||
|
|
||||||
def on_post_hostname_change(sender, old_hostname, new_hostname, **kwargs):
|
def on_post_hostname_change(sender, old_hostname, new_hostname, **kwargs):
|
||||||
|
|||||||
@ -68,6 +68,7 @@ class SSHApp(app_module.App):
|
|||||||
def setup(helper, old_version=None):
|
def setup(helper, old_version=None):
|
||||||
"""Configure the module."""
|
"""Configure the module."""
|
||||||
actions.superuser_run('ssh', ['setup'])
|
actions.superuser_run('ssh', ['setup'])
|
||||||
|
helper.call('post', app.enable)
|
||||||
|
|
||||||
|
|
||||||
def get_host_keys():
|
def get_host_keys():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user