mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-08 11:40:25 +00:00
ikiwiki: Minor styling and fix
- Minor styling update in service description. - Fix a minor issue that a2query outputs on STDERR when the configuration is disabled.
This commit is contained in:
parent
21e12b3c1f
commit
2f56a516de
@ -83,7 +83,8 @@ def subcommand_setup(_):
|
||||
def subcommand_get_enabled(_):
|
||||
"""Get whether ikiwiki site is enabled."""
|
||||
try:
|
||||
subprocess.check_output(['a2query', '-c', 'ikiwiki-plinth'])
|
||||
subprocess.check_output(['a2query', '-c', 'ikiwiki-plinth'],
|
||||
stderr=subprocess.STDOUT)
|
||||
print('yes')
|
||||
except subprocess.CalledProcessError:
|
||||
print('no')
|
||||
|
||||
@ -42,5 +42,5 @@ def init():
|
||||
|
||||
global service
|
||||
service = service_module.Service(
|
||||
'ikiwiki', _('ikiwiki wikis and blogs'), ['http', 'https'],
|
||||
'ikiwiki', _('Ikiwiki wikis and blogs'), ['http', 'https'],
|
||||
is_external=True, enabled=enabled)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user