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:
Sunil Mohan Adapa 2015-06-26 18:53:26 +05:30
parent 21e12b3c1f
commit 2f56a516de
2 changed files with 3 additions and 2 deletions

View File

@ -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')

View File

@ -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)