mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
ikiwiki: Use a2query to check if enabled.
This commit is contained in:
parent
be14b49c83
commit
9d6ceaa0ff
@ -82,9 +82,10 @@ def subcommand_setup(_):
|
||||
|
||||
def subcommand_get_enabled(_):
|
||||
"""Get whether ikiwiki site is enabled."""
|
||||
if os.path.isfile(CONFIG_ENABLE):
|
||||
try:
|
||||
subprocess.check_output(['a2query', '-c', 'ikiwiki-plinth'])
|
||||
print('yes')
|
||||
else:
|
||||
except subprocess.CalledProcessError:
|
||||
print('no')
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user