mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
2c59bbe0f3
commit
bed43564c3
2 files changed
+3
-11
No files matched your search
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user