From bded8750d5b4ae743dd96b3a814a78da66ab4a02 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 30 Jul 2022 16:13:47 +0200 Subject: [PATCH] [mod] fix minor leftovers from PR #1332 Related: https://github.com/searxng/searxng/pull/1332 Signed-off-by: Markus Heiser --- docs/admin/update-searxng.rst | 14 ++++++++++++++ utils/filtron.sh | 9 ++++++++- utils/morty.sh | 7 +++++++ utils/searx.sh | 7 +++++++ 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/docs/admin/update-searxng.rst b/docs/admin/update-searxng.rst index 15735b0ba..c2a34aeee 100644 --- a/docs/admin/update-searxng.rst +++ b/docs/admin/update-searxng.rst @@ -94,6 +94,20 @@ searx from or try:: If you are migrate from searx take into account that the ``.config.sh`` is no longer used. +If you upgrade from searx or from before :pull:`1332` has been merged and you +have filtron and/or morty installed, don't forget to remove HTTP sites. + +Apache:: + + $ sudo -H ./utils/filtron.sh apache remove + $ sudo -H ./utils/morty.sh apache remove + +nginx:: + + $ sudo -H ./utils/filtron.sh nginx remove + $ sudo -H ./utils/morty.sh nginx remove + + Check after Installation ------------------------ diff --git a/utils/filtron.sh b/utils/filtron.sh index ab207bbd8..7607bf6aa 100755 --- a/utils/filtron.sh +++ b/utils/filtron.sh @@ -4,11 +4,15 @@ # shellcheck source=utils/lib.sh source "$(dirname "${BASH_SOURCE[0]}")/lib.sh" +# shellcheck source=utils/brand.env +source "${REPO_ROOT}/utils/brand.env" # ---------------------------------------------------------------------------- # config # ---------------------------------------------------------------------------- +PUBLIC_URL="${PUBLIC_URL:-${SEARXNG_URL}}" + FILTRON_ETC="/etc/filtron" SERVICE_NAME="filtron" @@ -25,13 +29,16 @@ usage() { # shellcheck disable=SC1117 cat <