searx: Update Apache configuration and icon

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2018-02-26 18:54:14 +05:30
1 parent 67274e1566
commit 3b6f4d0df3
3 files changed
+8 -9

No files matched your search

+4 -4
View File
@@ -53,7 +53,7 @@ def _copy_uwsgi_configuration():
'uwsgi/apps-available/searx.ini')
destination = '/etc/uwsgi/apps-available/'
if not os.path.exists(destination):
if not os.path.exists(os.path.join(destination, 'searx.ini')):
shutil.copy(example_config, destination)
action_utils.webserver_enable('uwsgi', kind='module')
@@ -83,9 +83,9 @@ def subcommand_setup(_):
def subcommand_enable(_):
"""Enable web configuration and reload."""
# TODO Write action_utils functions for enable/disable uwsgi
os.symlink('/etc/uwsgi/apps-available/searx.ini',
'/etc/uwsgi/apps-enabled/')
if not os.path.exists('/etc/uwsgi/apps-enabled/searx.ini'):
os.symlink('/etc/uwsgi/apps-available/searx.ini',
'/etc/uwsgi/apps-enabled/searx.ini')
action_utils.webserver_enable('searx-freedombox')