From c9833ded9f4518f258e6b5d7eb4cc8ec79ade56d Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 21 May 2023 18:12:39 +0200 Subject: [doc] update & fix documentation of the "SearXNG LXC suite" Signed-off-by: Markus Heiser --- utils/lxc-searxng.env | 9 +++++---- utils/searxng.sh | 12 ++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/lxc-searxng.env b/utils/lxc-searxng.env index 9d6efb42e..8cc0ce886 100644 --- a/utils/lxc-searxng.env +++ b/utils/lxc-searxng.env @@ -42,10 +42,11 @@ EOF lxc_suite_install() { ( lxc_set_suite_env - FORCE_TIMEOUT=0 - export FORCE_TIMEOUT - "${LXC_REPO_ROOT}/utils/searxng.sh" install all - rst_title "suite installation finished ($(hostname))" part + FORCE_TIMEOUT=0 "${LXC_REPO_ROOT}/utils/searxng.sh" install all + rst_title "Suite installation finished ($(hostname))" part + if ask_yn "Developer install? (wraps source from HOST into the running instance)" Yn; then + "${LXC_REPO_ROOT}/utils/searxng.sh" searxng.install.link_src "$(pwd)" + fi lxc_suite_info echo ) diff --git a/utils/searxng.sh b/utils/searxng.sh index dee90bbf4..e04f87e10 100755 --- a/utils/searxng.sh +++ b/utils/searxng.sh @@ -467,6 +467,18 @@ EOF popd > /dev/null } +searxng.install.link_src() { + rst_title "link SearXNG's sources to: $2" chapter + echo + tee_stderr 0.1 <&1 | prefix_stdout "$_service_prefix" +mv -f "${SEARXNG_SRC}" "${SEARXNG_SRC}.backup" +ln -s "${2}" "${SEARXNG_SRC}" +ls -ld /usr/local/searxng/searxng-src +EOF + echo + uWSGI_restart "$SEARXNG_UWSGI_APP" +} + searxng.install.pyenv() { rst_title "Create virtualenv (python)" section echo -- cgit v1.2.3-54-g00ecf