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