diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2023-05-21 18:26:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-21 18:26:14 +0200 |
| commit | ddbab4b3c95feaaf2b5c113980b10b022ea01ec1 (patch) | |
| tree | 0ae00c7e3da899be6a962db443f903a78997f98d /utils/searxng.sh | |
| parent | d867bf17e6d2f9a7c83c9a1ffafda5184a24c0e3 (diff) | |
| parent | c9833ded9f4518f258e6b5d7eb4cc8ec79ade56d (diff) | |
Merge pull request #2450 from return42/lxc-doc
[doc] update & fix documentation of the "SearXNG LXC suite"
Diffstat (limited to 'utils/searxng.sh')
| -rwxr-xr-x | utils/searxng.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&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 |