mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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(_):
|
def subcommand_get_enabled(_):
|
||||||
"""Get whether ikiwiki site is enabled."""
|
"""Get whether ikiwiki site is enabled."""
|
||||||
if os.path.isfile(CONFIG_ENABLE):
|
try:
|
||||||
|
subprocess.check_output(['a2query', '-c', 'ikiwiki-plinth'])
|
||||||
print('yes')
|
print('yes')
|
||||||
else:
|
except subprocess.CalledProcessError:
|
||||||
print('no')
|
print('no')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user