mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ikiwiki: Use a2query to check if enabled.
This commit is contained in:
1 parent
be14b49c83
commit
9d6ceaa0ff
1 file changed
+3
-2
+3
-2
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user