mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
quassel: Don't handle certificates if not installed
Tests: - Without these changes, with Quassel not-installed, change the domain name. Notice that certificate events for Quassel fails due to missing domain information. - With these changes, with Quassel not-installed, change the domain name. Notice that certificate events for Quassel don't result in any actions. - With these changes, when Quassel is installed, certificate is properly setup for a domain. - With these changes, with Quassel installed, change the domain name. Notice that certificate events for Quassel succeed. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
00683762c8
commit
98f9d59ef1
@ -134,8 +134,8 @@ def get_domain():
|
||||
|
||||
def get_domains():
|
||||
"""Return a list with the configured domain for quassel."""
|
||||
setup_helper = globals()['setup_helper']
|
||||
if setup_helper.get_state() == 'needs-setup':
|
||||
# If not installed, return empty. But work while installing too.
|
||||
if not pathlib.Path('/var/lib/quassel/').exists():
|
||||
return []
|
||||
|
||||
domain = get_domain()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user