searx: Use action utils for uwsgi configuration management

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2019-01-14 19:51:30 -05:00
1 parent 2c59bbe0f3
commit bed43564c3
2 files changed
+3 -11

No files matched your search

+1 -3
View File
@@ -18,8 +18,6 @@
FreedomBox app to configure Searx.
"""
import os
from django.utils.translation import ugettext_lazy as _
from plinth import service as service_module
@@ -105,7 +103,7 @@ def get_safe_search_setting():
def is_enabled():
"""Return whether the module is enabled."""
return (action_utils.webserver_is_enabled('searx-freedombox')
and os.path.exists('/etc/uwsgi/apps-enabled/searx.ini'))
and action_utils.uwsgi_is_enabled('searx'))
def enable():